mli / new-docs

https://beta.mxnet.io/
13 stars 17 forks source link

searching for functions yields nothing (or hangs) #105

Open aaronmarkham opened 5 years ago

aaronmarkham commented 5 years ago

Try: https://beta.mxnet.io/search.html?q=LBSGD No results... it just hangs in "Searching" mode.

There's a js error:

Uncaught TypeError: Cannot read property 'textContent' of undefined
    at Object.htmlToText (searchtools.js:66)
    at Object.makeSearchSummary (searchtools.js:483)
    at Object.complete (searchtools.js:277)
    at i (jquery.js:2)
    at Object.fireWith (jquery.js:2)
    at A (jquery.js:4)
    at XMLHttpRequest.<anonymous> (jquery.js:4)
thomelane commented 5 years ago

"Seaching..." never disappears (and that JS error is always there too), even for sucessful searches. And it's not just functions, it's everything.

hunse commented 5 years ago

We had a similar problem, and found that sphinx-doc/sphinx#6387 fixes it (either upgrade your Sphinx, if you're using their themes, or make the modification in that PR to your own theme if you're using a custom theme).

vsalvino commented 4 years ago

Hello - I came across your bug while hunting down a similar bug in my own sphinx docs. See if my branch fixes it for you: See https://github.com/sphinx-doc/sphinx/pull/7192