-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Documentation: favicon and logo variables not documented properly with 6.0.0 release #11062
Comments
Is there any chance we can go through a deprecation cycle for this? It would be helpful if there were a check for |
Hi Chris, this was deprecated in Sphinx 4 (#8737) and removed in Sphinx 6 -- this is the standard 2 release deprecation period for Sphinx. The fix is simply to rename A |
Huh - I never noticed a warning in any of my builds. Maybe i just missed it. I am also a bit confused - it's called logo_url but in my experience most people use a direct path instead of a URL. Is only a URL allowed now? Edit: note to self / others: looks from the docs that the functionality is the exact same, just had URL in the variable name now |
The better name perhaps would've been A |
Yeah - this is why I was confused. The deprecated name (html_logo) was more generic than the new name (html_logo_url) which is why I assumed the functionality had become more specific to URLs. |
Because pydata-sphinx-theme occurs problem of pydata/pydata-sphinx-theme#1094 when we use Sphinx 6.0.0. The cause of this problem is the following change of Sphinx. * sphinx-doc/sphinx#11062 * sphinx-doc/sphinx#11063 Therefore we use Sphinx 5.x until pydata-sphinx-theme resolve this problem.
Because pydata-sphinx-theme occurs problem of pydata/pydata-sphinx-theme#1094 when we use Sphinx 6.0.0. The cause of this problem is the following change of Sphinx. * sphinx-doc/sphinx#11062 * sphinx-doc/sphinx#11063 Therefore we use Sphinx 5.x until pydata-sphinx-theme resolve this problem.
Same here, but I wouldn't have missed it since I use the switches |
I just encountered this, specifically when using the haiku theme. I haven't yet looked at other themes. |
@jp-larose Can you be more specific in what exactly you encountered? TBH, I think this should be a separate bug report. The haiku theme uses sphinx/sphinx/themes/haiku/layout.html Lines 37 to 48 in b88713e
The haiku theme also inherits from the basic theme layout.html which uses sphinx/sphinx/themes/basic/layout.html Lines 139 to 141 in b88713e
May also be effecting the scrolls theme:
|
…= 6 (#35194) ### Rationale for this change Sphinx dropped support for the `logo` property in release 6. See sphinx-doc/sphinx#11062 Instead we are supposed to use `logo_url` which has been available since release 4. ### What changes are included in this PR? Change from `logo` to `logo_url` ### Are these changes tested? There was a CI test that was failing so yes. ### Are there any user-facing changes? No. We already required `sphinx >= 4` and since `logo_url` is available in 4 we should not need to update the minimum sphinx version. * Closes: #35192 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
…= 6 (#35194) ### Rationale for this change Sphinx dropped support for the `logo` property in release 6. See sphinx-doc/sphinx#11062 Instead we are supposed to use `logo_url` which has been available since release 4. ### What changes are included in this PR? Change from `logo` to `logo_url` ### Are these changes tested? There was a CI test that was failing so yes. ### Are there any user-facing changes? No. We already required `sphinx >= 4` and since `logo_url` is available in 4 we should not need to update the minimum sphinx version. * Closes: #35192 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
…hinx >= 6 (apache#35194) ### Rationale for this change Sphinx dropped support for the `logo` property in release 6. See sphinx-doc/sphinx#11062 Instead we are supposed to use `logo_url` which has been available since release 4. ### What changes are included in this PR? Change from `logo` to `logo_url` ### Are these changes tested? There was a CI test that was failing so yes. ### Are there any user-facing changes? No. We already required `sphinx >= 4` and since `logo_url` is available in 4 we should not need to update the minimum sphinx version. * Closes: apache#35192 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
…hinx >= 6 (apache#35194) ### Rationale for this change Sphinx dropped support for the `logo` property in release 6. See sphinx-doc/sphinx#11062 Instead we are supposed to use `logo_url` which has been available since release 4. ### What changes are included in this PR? Change from `logo` to `logo_url` ### Are these changes tested? There was a CI test that was failing so yes. ### Are there any user-facing changes? No. We already required `sphinx >= 4` and since `logo_url` is available in 4 we should not need to update the minimum sphinx version. * Closes: apache#35192 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
…hinx >= 6 (apache#35194) ### Rationale for this change Sphinx dropped support for the `logo` property in release 6. See sphinx-doc/sphinx#11062 Instead we are supposed to use `logo_url` which has been available since release 4. ### What changes are included in this PR? Change from `logo` to `logo_url` ### Are these changes tested? There was a CI test that was failing so yes. ### Are there any user-facing changes? No. We already required `sphinx >= 4` and since `logo_url` is available in 4 we should not need to update the minimum sphinx version. * Closes: apache#35192 Authored-by: Weston Pace <weston.pace@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@photoniker It may be related but probably more specific to whatever theme you're using. Contact the theme administrators to inquire about compensation for Sphinx' change from |
@2bndy5 the MDL_theme is used here. |
@photoniker ok, but again you should take it up with the theme authors. I can't find that theme by googling "MDL_theme"... |
FYI https://getmdl.io/ |
This seems to be a link to Google's Material Design Lite overview page -- do you have a link to the Sphinx theme you're using? A |
I have the theme in the |
I can't see your A |
@photoniker the MDL that you keep calling a theme is not a sphinx theme. In fact, MDL is a CSS framework that is no longer maintained. What did you set |
@2bndy5 the itom project is a public repo which wwe currently move from bitbucket to GitHub. We used Sphinx for the whole Website that time. Since the last build Sphinx changed 2 major versions... And yes I also realized MDL is not maintained anymore. |
It is Sphinx related, but the bug is with the |
Whould you recommend the sphinx-material theme? |
Personally, no. I work on the sphinx-immaterial theme, so I'm rather biased. However, the pydata theme is ok for general usage. Many have turned to furo as a more modern theme instead of the readthedocs theme. |
The previous commit was built using Sphinx 7.0.1. As result, the logo disappears. I can't find a solution using the modern Shpinx, so rebuilt the documentation using 4.4.0. It seems it is somehow related to configuration options renaming and how Sphinx themes follow these changes, see [1]. [1]: sphinx-doc/sphinx#11062
The previous commit was built using Sphinx 7.0.1. As result, the logo disappears. I can't find a solution using the modern Shpinx, so rebuilt the documentation using 4.4.0. It seems it is somehow related to configuration options renaming and how Sphinx themes follow these changes, see [1]. [1]: sphinx-doc/sphinx#11062
Describe the bug
The Deprecated APIs documentation page still lists the removal of
favico
andlogo
variables in HTML templates as "TBD". However, they appear to have been removed for the 6.0.0 release as of PR #10562.How to Reproduce
Build docs with a template that has a conditional inclusion of the form:
With 5.3.0 this would still include the content in HTML output; with 6.0.0, the content is no longer included.
Switching the conditional inclusion to
{%- if logo_url -%}
with 6.0.0 makes the build correctly include the content in the output again.Environment Information
text Platform: darwin; (macOS-13.1-x86_64-i386-64bit) Python version: 3.11.1 (main, Dec 8 2022, 10:20:55) [Clang 14.0.0 (clang-1400.0.29.202)]) Python implementation: CPython Sphinx version: 6.0.0 Docutils version: 0.19 Jinja2 version: 3.1.2
Sphinx extensions
No response
Additional context
Deprecated APIs page needs an update to note that now
logo
andfavicon
have been removed in favour oflogo_url
andfavicon_url
as of 6.0.0.The text was updated successfully, but these errors were encountered: