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?
Asked
Active
Viewed 283 times
1

pew
- 37
- 2
- 6
-
Please provide enough code so others can better understand or reproduce the problem. – MD. RAKIB HASAN Sep 05 '22 at 13:07
1 Answers
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