-
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
Canonical ref does not match URL for builds that use dirhtml builder #1406
Comments
All this might be a Sphinx issue though. I haven't had the time to check. |
I think this was a problem when installing an outdated version of sphinx, and then installing a new one over it. They have their requirements set explicitly https://github.com/pypa/packaging.python.org/blob/main/requirements.txt, so we should be fine enabling the |
So the issue originates from this behavior? How does |
Seems that the theme, python-docs-theme, is the reason for being stuck with sphinx 4.x until the work by Adam is merged - |
And... that didn't work :D |
Similar issue here: https://test-builds.readthedocs.io/en/htmldir/folder/ |
I upgraded Sphinx to the latest version in https://test-builds.readthedocs.io/en/htmldir/ but the issue persists. |
Yea, this is a bug, we should prioritize fixing it. It's likely causing lots of search issues. |
@ericholscher I just saw that the issue description here has broken down where the bug might be found: #1303 |
This is indeed an issue in the theme. Moving this issue and opening a PR since I'm already in the area 👍 |
This is the upstream issue by the way: sphinx-doc/sphinx#9730 |
This is only fixing the theme. If we want to implement a work-around on everything hosted on RTD, we should figure out why |
I was able to fix teh canonical issue with a |
The easiest fix for users here is to remove the theme configuration Read the Docs already does this "automagically" at https://github.com/readthedocs/readthedocs.org/blob/4b2eb75bebfce04390ac3f84d1c57ef7f7126fe8/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl#L151-L156 Besides, I think that now Read the Docs is exposing |
@benjaoming gotcha! I miss-read the Sphinx code and thought that |
@humitos yes, that's it.. and there's also a PR to fix exactly that part... I'd put in a proposal to add a |
I'm a little lost here about how to solve this issue. What are the actionable steps to move forward from our side? |
I think it's a Sphinx issue that we could work around, but I think Sphinx should likely fix it. |
I think we should revisit this now that we are working on a 3.0.0rc1 release. I think this could also be related with the Sphinx context change we are doing; we should double check that we are setting the canonical |
I checked this locally by using However, the deprecated Since that option is deprecated since version 0.6.x we can call this a non-issue. I perform the tests with those projects, and I see it works fine:
|
Details
Upstream issue: sphinx-doc/sphinx#9730
Expected Result
Actual Result
The text was updated successfully, but these errors were encountered: