Closed ns-rse closed 2 years ago
Respected sir, I have also faced the same error in the new 0.9.0 version. try falling back to 0.8.1 this will resolve the issues. @ns-rse this can be currently be resolved by using( pydata-sphinx-theme==0.8.1 ) in requirements.txt until a patch has not been submitted. Thanks and Regards, Henil Panchal
@henilp105 Thank you already pegged it to 0.8.1
in the GitHub action that builds my documentation GitHub pipeline.
The favicon documentation suggests that you need to provide a sizes
keyword...are you not providing this? If not that explains the error. If so, then I think this is a bug
Thanks for looking at this @choldgraf
I have favicons defined but no size, currently with...
html_theme_options = {
"show_nav_level": 2,
"favicons": [
{"rel": "icon", "href": "https://github.com/Mesnage-Org/pgfinder/actions/workflows/ci-tests.yml/badge.svg"},
{"rel": "icon", "href": "https://codecov.io/gh/Mesnage-Org/pgfinder"},
],
}
...and building with pydata_sphinx_theme==0.9.0
fails as per above.
If however I add a size as you suggest...
html_theme_options = {
"show_nav_level": 2,
"favicons": [
{
"rel": "icon",
"sizes": "156x20",
"href": "https://github.com/Mesnage-Org/pgfinder/actions/workflows/ci-tests.yml/badge.svg",
},
{
"rel": "icon",
"sizes": "115x20",
"href": "https://codecov.io/gh/Mesnage-Org/pgfinder",
},
],
}
Then the documentation builds fine with pydata_sphinx_theme==0.9.0
.
So I think this is not a bug per-se, but we could improve the UX by defining a default "size" in case the user doesn't present one.
I was building favicon for my documentation and I remembered this issue. I just found this small favicon extention: https://pypi.org/project/sphinx-favicon/. Maybe instead of duplicate the work we could also have a look.
If that seems relatively well maintained, the functionality is there, and it's not a heavy dependency, I'd be +1 on just adding it as a dependency and using it for the favicon functionality
Hi,
I've found my pages do not build with the recent release of pytdata-sphinx-theme-0.9.0 and fails with the following error...