Skip to content

Builder specific configs #13505

Closed
Closed

Description

@LecrisUT

Is your feature request related to a problem? Please describe.
When building a standalone man page, I want to include a exclude_patterns so that the html files are not calculated. But I do not see a way to attach specific configs to a specific builder.

Describe the solution you'd like
Have a way to add builder specific options such as a builder_opts or expose a variable similar to tags to interogate which builder is being requested.

Describe alternatives you've considered
I have tried to include one dynamically via

def setup(app):
    if app.builder == "man":
        app.config.exclude_patterns = "**"

but this does not work because app.builder is not available at that point.

Activity

  1. locked and limited conversation to collaborators on Apr 25, 2025
  2. converted this issue into a discussion #13506 on Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions