-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
html_sourcelink_suffix don't allow anymore to make search result user friendly #3696
Comments
As workaround, in searchtools.js_t, replace the line |
For what it's worth, sphinxprettysearchresults was updated this week to v0.2.0, which works with Sphinx 1.5. |
@pybride Is this still needed? |
@tk0miya I just returned from a long trip, so I didn't tested the new sphinxprettysearchresults, but apparently it isn't needed anymore. I will close it. |
:-) |
Subject:
html_sourcelink_suffix
don't allow anymore to make search result user friendlyProblem
The sphinx-pretty-searchresults plugin makes the filtering better, but it is still a text output from sphinx.
Therefore, if the documentation source has a
something.rst
file, asomething.txt
would be put in the _sources folder.But since sphinx 1.5 and #2454, the behavior is to add the
html_sourcelink_suffix
to the source file name: the javascript search will look for a filesomething.rst.txt
Unfortunately, this new behavior cannot be disabled (not like the previous #2399).
I see three possible solutions:
text_file_suffix
to allow the second run to generate file likesomething.rst.txt
html_sourcelink_keep_suffix
, so that when set to false, the javascript will look forsomething.txt
Environment info
The text was updated successfully, but these errors were encountered: