-
Notifications
You must be signed in to change notification settings - Fork 5
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: New RTD readthedocs-addons.js
not proxied properly, results in 404
#537
Comments
Thanks for reporting and providing a good analysis, where this is coming from, and where to look for a fix. As long as it is not super urgent 1, I am postponing to resolve it in an upcoming long winter's night, maybe after doing one more hands-on analysis session together with you, as this often worked very well to tame the Sphinx. Footnotes
|
readthedocs-addons.js
not proxied properly, results in 404readthedocs-addons.js
not proxied properly, results in 404
@amotl hard to say how big that impact really is, I just saw a bunch (2k) of 404s in SEO tools which has an overall impact on our scoring, but unsure if Google or any other search engine is handing out penalties for broken js. Either way, I would be keen to tackle it anytime soon, but lets sync on the other platform to figure out what to do. |
@amotl I did a bit of researching, this is what I found:
Somewhat explained here https://github.com/readthedocs/readthedocs.org/blob/main/readthedocs/proxito/README.rst#custom-path-prefixes and maybe here https://dev.readthedocs.io/en/latest/design/better-doc-urls-handling.html I'm not a 100% sure if the custom path also affects the |
Thanks for the research. If you see a chance there is a chance for fixing inside, let's try to apply it together? |
As mentioned the other day (in #536), RTD introduced new addons which broke some of our custom integrations. We fixed most of it, but the addons themselves aren't being loaded because apparently they're ignoring the
proxied_static_path
directive from our sphinx template, which results in a 404 and subsequently in the loss of some of the functionality (e.g. version-warning on unstable/older releases, PR's and such - only on proxied URLs of course).So instead of loading the file from
https://cratedb.com/docs/crate/reference/_/static/javascript/readthedocs-addons.js
it's looking in the domain root
https://cratedb.com/_/static/javascript/readthedocs-addons.js
In our theme we tried to override the path via https://github.com/crate/crate-docs-theme/blob/main/src/crate/theme/rtd/conf/__init__.py#L292-L309 which used to work, but not anymore.
The text was updated successfully, but these errors were encountered: