Skip to content
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

Text search feature fails due to "blocked by CORS policy" preventing searchindex.js from loading. #8603

Closed
MPSystemsServices opened this issue Dec 27, 2020 · 3 comments

Comments

@MPSystemsServices
Copy link

Using Python 3.9.1, 32-bit, and the current download of Sphinx. Documentation HTML output works pretty much normally, but the search feature crashes as indicated. Caused by any reference to functions in searchindex.js or searchtools.js failing. BUT... note that I had built documentation for these same modules a couple of years ago and everything worked just fine, so I copied the contents of that old _static directory with an old copy of your searchtools.js into the new _static directory and search now works. I don't have time to compare the old and new version of searchtools.js, but something clearly has changed and now triggers this error. BTW, the CORS error appears with EDGE, FireFox and Chrome.

@tk0miya
Copy link
Member

tk0miya commented Dec 28, 2020

Do you use sphinx_rtd_theme? If so, you need to install it from the repository. see readthedocs/sphinx_rtd_theme#1021.

@MPSystemsServices
Copy link
Author

MPSystemsServices commented Dec 28, 2020 via email

utzig added a commit to utzig/zephyr that referenced this issue Dec 28, 2020
Require Sphinx<3.4.0 to avoid the issue described in:

sphinx-doc/sphinx#8603

This requirement can be relaxed once a new sphinx-rtd-theme is
released.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
@MPSystemsServices
Copy link
Author

MPSystemsServices commented Dec 28, 2020 via email

@tk0miya tk0miya closed this as completed Dec 29, 2020
nashif pushed a commit to zephyrproject-rtos/zephyr that referenced this issue Jan 4, 2021
Require Sphinx<3.4.0 to avoid the issue described in:

sphinx-doc/sphinx#8603

This requirement can be relaxed once a new sphinx-rtd-theme is
released.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
bwasim pushed a commit to bwasim/zephyr that referenced this issue Jan 5, 2021
Require Sphinx<3.4.0 to avoid the issue described in:

sphinx-doc/sphinx#8603

This requirement can be relaxed once a new sphinx-rtd-theme is
released.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
tk0miya added a commit to tk0miya/sphinx that referenced this issue Mar 21, 2021
…ng canonical name

This generates `:canonical:` option for `:py:class:` directive if the
target class is imported from other module.  It allows users to refer it
using both the new name (imported name) and the original name (canonical
name).

It helps a library that implements some class in private module (like
`_io.StringIO`), and publish it as public module (like `io.StringIO`).
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants