-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
UndefinedError("'sphinx_version_info' is undefined") - Error in current master #1355
Comments
I would want to close this as "invalid" as somehow the entire |
The problem building docs.readthedocs.org is in html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] Commenting out this line makes the documentation project build, calling the theme's entrypoint |
I suspect the main issue is the the However, this is probably a rather common pattern. We didn't specify this installation pattern for a long while, and it's probably not very obvious that the theme needs to be set up as an extension on top of being set as I think this signals we should go back to the original logic, using template code, and fix the bug with breaking up |
Adding the theme in Here's a minimal conf.py that will call project = 'Test'
copyright = '2022, Test Person'
author = 'Test Person'
extensions = []
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
I can try to work on that and see what's in the Jinja toolbox. |
Just to illustrate the point, here is a minimal project = 'Test'
copyright = '2022, Test Person'
author = 'Test Person'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = []
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
# Now break things...
import sphinx_rtd_theme
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] This is also important for whatever solution we would choose for a sphinx-jquery extension since we cannot rely on logic inside |
Noting that the currently injected Sphinx configuration code for Read the Docs has this:
Which ultimately means that for now, we cannot rely on |
Fixed in #1356 |
Problem
This must have been introduced in #1345
Building for instance the Read the Docs user docs with the current theme gives this error:
The text was updated successfully, but these errors were encountered: