Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow inheriting Furo as a Sphinx theme #649

Closed

Conversation

Eric-Arellano
Copy link
Contributor

To inherit Furo, the new Sphinx theme needs to call the setup code from furo/__init__.py's setup. See #648 for an example.

However, currently, these setup helper functions will not run if the theme is not set to Furo. (That's a good default behavior because it avoids Furo doing undesired things when you have Furo installed but aren't actually using it.)

So, this adds the argument validate_furo: bool = True to both _html_page_context and _builder_inited. That allows plugins to use functools.partial to set the argument to False, as done in #648.

The default behavior is unaffected because the default is set to True.

@Eric-Arellano
Copy link
Contributor Author

Superseded by 48c0bf2. Thank you! 🎉

@Eric-Arellano Eric-Arellano deleted the allow-inheritance branch April 13, 2023 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant