From 08d1673dff2884866462c98d2f002c221bedd06b Mon Sep 17 00:00:00 2001 From: Devi Sandeep Endluri Date: Thu, 18 Jun 2020 03:25:57 -0500 Subject: Fix search issue in scipy devdocs. In https://scipy.github.io/devdocs, when you use the search box, the links it returns include an "undefined" that make them invalid. Example: first link of https://scipy.github.io/devdocs/search.html?q=eigh is https://scipy.github.io/devdocs/generated/scipy.linalg.eighundefined ?highlight=eigh. This is because the LINK_SUFFIX is not assigned any value. The fix is to include the generated documentation_options.js file, so that irrespective of the Sphinx version, the appropriate attributes would be set. --- _theme/scipy/layout.html | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/_theme/scipy/layout.html b/_theme/scipy/layout.html index 6bf7027..5b32f94 100644 --- a/_theme/scipy/layout.html +++ b/_theme/scipy/layout.html @@ -87,15 +87,7 @@ {%- endmacro %} {%- macro script() %} - + {%- for scriptfile in script_files %} {%- endfor %} -- cgit v1.2.1