js: Set 'LINK_SUFFIX'

Sphinx 3.0.0 changed the behavior of JavaScript-based search utility,
changing the configuration option used to determine the suffix for
search results from 'html_file_suffix' to 'html_link_suffix' [1]. We
were manually overriding 'DOCUMENTATION_OPTIONS' and were not setting
the 'LINK_SUFFIX' attribute, which maps to this config option, meaning
our resulting URLs looked like 'fooundefined', where 'foo' is the name
of the file.

Add 'LINK_SUFFIX', resolving this issue.

[1] https://github.com/sphinx-doc/sphinx/commit/a717ffec78

Change-Id: I06488225cf0431e601f16e0f1047a6088a11d5bd
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Closes-bug: #1880331
This commit is contained in:
Stephen Finucane 2020-09-22 11:43:18 +01:00
parent 94b3ecb547
commit 9efc192021
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@
VERSION: '{{ version }}',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
SOURCELINK_SUFFIX: '.txt',
HAS_SOURCE: true
};