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

Load language data in v5.6.2 and v5.7.0 #25

Merged
merged 1 commit into from Mar 25, 2022

Conversation

psavery
Copy link
Contributor

@psavery psavery commented Mar 25, 2022

Newer versions of sphinx (starting with this commit)
no longer automatically load the language_data.js file. This would
cause the sphinx_rtd_theme to have an error when attempting to search
that stated Uncaught ReferenceError: Stemmer is not defined. The
Stemmer is a class normally defined in the language_data.js file.

Newer versions of sphinx_rtd_theme load the language_data.js file
in manually, starting from this PR.

Load the language data in via a similar setup so that the search
works for v5.6.2 and v5.7.0.

The latest language_data.js file was used.

@vicentebolea

Newer versions of sphinx (starting with [this commit](sphinx-doc/sphinx@f5289bb))
no longer automatically load the `language_data.js` file. This would
cause the `sphinx_rtd_theme` to have an error when attempting to search
that stated `Uncaught ReferenceError: Stemmer is not defined`. The
`Stemmer` is a class normally defined in the `language_data.js` file.

Newer versions of `sphinx_rtd_theme` load the `language_data.js` file
in manually, starting from [this PR](readthedocs/sphinx_rtd_theme#1021).

Load the language data in via a similar setup so that the search
works for v5.6.2 and v5.7.0.

The latest `language_data.js` file was used.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@vicentebolea vicentebolea self-requested a review March 25, 2022 15:44
@vicentebolea vicentebolea merged commit 513d357 into Kitware:gh-pages Mar 25, 2022
github-actions bot pushed a commit that referenced this pull request Mar 28, 2022
Load language data in v5.6.2 and v5.7.0
github-actions bot pushed a commit that referenced this pull request Mar 29, 2022
Load language data in v5.6.2 and v5.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants