1

When Sphinx generates documentation, it also generates special searchindex.js file, which contains all of the documentation items. How to acess it from a JS script placed in _static?

pew
  • 37
  • 2
  • 6

1 Answers1

1

In _static/myfile.js, you can reference the path from the root of the built docs, for example, /searchindex.js.

Steve Piercy
  • 13,693
  • 1
  • 44
  • 57
  • Can you provide an example please? I'm coming from NodeJS and not very familiar with web technologies sadly.. – pew Sep 08 '22 at 17:04
  • https://stackoverflow.com/questions/5892845/how-to-load-one-javascript-file-from-another – Steve Piercy Sep 09 '22 at 09:30