We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
layout.html
I am getting a theme error when trying to build the docs with Sphinx 7.2.5
Theme error: An error happened in rendering the page ChangeLog. Reason: UndefinedError("'logo' is undefined")
Is appears that Sphinx 6.0.0 renamed the logo variable in HTML templates and now it is called logo_url.
logo
logo_url
The offending HTML fragment is
triqs/doc/_templates/layout.html
Lines 11 to 13 in e1fa5dd
Since layout.html is based on some code from sphinx_rtd_theme, I suggest doing the same thing as RTD's devs did,
sphinx_rtd_theme
+{%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %} <a href={{ pathto('index') }}> - <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> + <img src="{{ _logo_url }}" class="logo" alt="{{ _('Logo') }}"/> </a>
With this change, the documentation builds normally and the logo is properly displayed.
The text was updated successfully, but these errors were encountered:
[doc] Fix issue in layout.html TRIQS#912
873e425
Thank you @krivenko for pointing this out. This was fixed in 873e425
Sorry, something went wrong.
[doc] Fix issue in layout.html #912
58cec06
f2272b2
c010ce9
No branches or pull requests
I am getting a theme error when trying to build the docs with Sphinx 7.2.5
Is appears that Sphinx 6.0.0 renamed the
logo
variable in HTML templates and now it is calledlogo_url
.The offending HTML fragment is
triqs/doc/_templates/layout.html
Lines 11 to 13 in e1fa5dd
Since
layout.html
is based on some code fromsphinx_rtd_theme
, I suggest doing the same thing as RTD's devs did,With this change, the documentation builds normally and the logo is properly displayed.
The text was updated successfully, but these errors were encountered: