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

Search is broken (as in: JS is broken) #3347

Closed
quasipedia opened this issue Jan 16, 2017 · 1 comment
Closed

Search is broken (as in: JS is broken) #3347

quasipedia opened this issue Jan 16, 2017 · 1 comment

Comments

@quasipedia
Copy link

quasipedia commented Jan 16, 2017

Problem

On a freshly generated site, entering any term as a search query will bear a stuck "three dots blinking" and no results.

Procedure to reproduce the problem

conf.py

html_theme = 'sphinx_rtd_theme'
html_show_sourcelink = False
html_sourcelink_suffix = 'txt'

command

sphinx-build -b html -n -W -d _build/doctrees  doc _build/html

Error logs / results

xxx

I should add that I checked searchindex.js and the payload of Search.setIndex is a totally fine js object, that can be read, parsed and used in the console and on node.

The topmost file in the stack trace has:

          var suffix = DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX;
          $.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[5] + (item[5].slice(-suffix.length) === suffix ? '' : suffix),

Yet... the suffix seem to be undefined for some reason.

Expected results

To find document matching my query!

Environment info

  • OS: Fedora 25 64 bit
  • Python version: 3.5.2
  • Sphinx version: 1.5.1
@tk0miya
Copy link
Member

tk0miya commented Jan 16, 2017

Same as #3203 .
Sorry, it is a bug of sphinx_rtd_theme.

@tk0miya tk0miya closed this as completed Jan 21, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants