-
Notifications
You must be signed in to change notification settings - Fork 339
set html_tag
block is missing data-content_root (sphinx 7.2+ basic theme change)
#1498
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
Comments
Do you have an example of such a behavior in our own doc (now finally building with Sphinx 7)? I fail to clearly understand what search result you are talking about and I want to make sure that such a modification is not going to impact older version of Sphinx (that we need to continue supporting). |
I'm encountering this issue as well. Edit: I downgraded Sphinx to 6.2.1 for now on my website, so it no longer produces this error. |
Sphinx basic theme seems to now use
data-content_root
instead ofDOCUMENTATION_OPTIONS.URL_ROOT
which is set in thehtml
element.See sphinx-doc/sphinx@8e730ae for the change.
As such, the sphinx 7.2+ search results for dirhtml builds have resulting urls that have search/undefined in them (which makes them 404 when a user clicks on the resulting links.
Maybe modifying https://github.com/pydata/pydata-sphinx-theme/blob/185a37aa36820f77bffa4c87a772092e9e7cc380/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html#L4C1-L6C13 to include
data-content_root="../"
might fix it?The text was updated successfully, but these errors were encountered: