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

Option to choose searchindex.js location #11153

Open
dagnic opened this issue Jan 25, 2023 · 1 comment · May be fixed by #12692
Open

Option to choose searchindex.js location #11153

dagnic opened this issue Jan 25, 2023 · 1 comment · May be fixed by #12692
Labels
html search internals:config python Pull requests that update Python code

Comments

@dagnic
Copy link

dagnic commented Jan 25, 2023

When using sphinx within a flask application, all files in the _static directory are accessible. That's not the case by default for the files outside _static, unless we define specific routes.

I propose to add an option searchindex_filename to the StandaloneHTMLBuilder to be able to choose a specific location for the searchindex.js file.

EDIT: this is may be difficult since many themes (including provided by extensions) rely on the assumption that this file is in the root of the build directory.

@AA-Turner
Copy link
Member

I've seen @jayaddison's #12692, but I am not entirely sure of the value proposition of this change. Could we expand on why it is useful to move searchindex.js? I'm not sure I understand the flask example.

A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html search internals:config python Pull requests that update Python code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants