Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit e919024

Browse files
committed
Use proxied api for search
1 parent 3c0ab7e commit e919024

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

sphinx_search/static/js/rtd_sphinx_search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ window.addEventListener("DOMContentLoaded", evt => {
640640
const project = READTHEDOCS_DATA.project;
641641
const version = READTHEDOCS_DATA.version;
642642
const language = READTHEDOCS_DATA.language || "en";
643-
const api_host = READTHEDOCS_DATA.api_host;
643+
const api_host = '/_';
644644

645645
let initialHtml = generateAndReturnInitialHtml();
646646
document.body.innerHTML += initialHtml;

sphinx_search/static/js/rtd_sphinx_search.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_ui.py

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
'project': 'docs',
2424
'version': 'latest',
2525
'language': 'en',
26-
'api_host': 'https://readthedocs.org/',
2726
}
2827

2928
# This will be inserted in the html page

0 commit comments

Comments
 (0)