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?

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Sep 5, 2022 at 13:07

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.