-
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
Add missing SOURCELINK_SUFFIX #346
Conversation
Adds DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX which is expected by the searchtools.js Related sphinx commit: sphinx-doc/sphinx@71dd8bf
Thanks for sending this along! |
Hey, what is your release schedule? I looks like a while since the last release :) |
@ericholscher - When is this fix going to be released? |
can be reverted when readthedocs/sphinx_rtd_theme#346 is released
can be reverted when readthedocs/sphinx_rtd_theme#346 is released
The search bug in sphinx-rtd-theme was described and fixed here: readthedocs/sphinx_rtd_theme#346 but hasn't been released yet. This commit changes requirements.txt to use a known-working commit on master of snide/sphinx_rtd_theme that works with sphinx 1.5.2. Search now works again \o/
Modify Unfixed: 164 <script type="text/javascript">
165 var DOCUMENTATION_OPTIONS = {
166 URL_ROOT:'{{ url_root }}',
167 VERSION:'{{ release|e }}',
168 COLLAPSE_INDEX:false,
169 FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
170 HAS_SOURCE: {{ has_source|lower }}
171 };
172 </script> Fixed: 164 <script type="text/javascript">
165 var DOCUMENTATION_OPTIONS = {
166 URL_ROOT:'{{ url_root }}',
167 VERSION:'{{ release|e }}',
168 COLLAPSE_INDEX:false,
169 FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
170 HAS_SOURCE: {{ has_source|lower }},
171 SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
172 };
173 </script> |
- See readthedocs/sphinx_rtd_theme#346 for description of issue and solution - Required for search to work with Sphinx v1.5.4+
* Fix searchbar on website - See readthedocs/sphinx_rtd_theme#346 for description of issue and solution - Required for search to work with Sphinx v1.5.4+ * add minimal version
* Fix searchbar on website - See readthedocs/sphinx_rtd_theme#346 for description of issue and solution - Required for search to work with Sphinx v1.5.4+ * add minimal version
Hello, |
@alejandrovr something like |
@mikkeloscar hmm, weird. I do not have that file, and even better, I do not have any sphinx_rtd_theme directory. However, in the searchtools.js, if I change everything works, so the problem is there. I am using Sphinx 1.5.6., btw. Thanks anyway, Alejandro |
Issue with sphinx_rtd_theme, see: readthedocs/sphinx_rtd_theme#346
Since the upgrade of Sphinx in our build process (subsequent to the work done in #50) the search is broken. The issue was caused by the theme (see readthedocs/sphinx_rtd_theme#346), so updating our import to the latest stable version (0.2.4) solve the issue.
Since the upgrade of Sphinx in our build process (subsequent to the work done in #50) the search is broken. The issue was caused by the theme (see readthedocs/sphinx_rtd_theme#346), so updating our import to the latest stable version (0.2.4) solve the issue.
This exact issue still exists with the recent Sphinx 2.0.0 release and sphinx_rtd_theme 0.4.3:
...where the correct file is named "filename.txt" (test live at https://mapserver.org/search.html ) |
Recently ran into this as well. Is there a known sphinx_rtd_theme + sphinx version combination that works? When using search, all of the links end with |
@jpreese think one or two releases back in sphinx will fix the problem, but I think this is already fixed in master and we just need to push a new version, I'll see if we can do that. |
Thank you @stsewd! Much appreciated. I have yet been able to find a RTD/Sphinx combination that works. edit: Just saw that
Thanks! |
Issue with sphinx_rtd_theme, see: readthedocs/sphinx_rtd_theme#346
Adds
DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX
which is expected bysearchtools.js_t
Related sphinx commit: sphinx-doc/sphinx@71dd8bf
I'm using sphinx 1.5-1 and without this fix, search doesn't work: