Skip to content

Commit c305b82

Browse files
authored
Fix version switcher by using sphinxcontrib-jquery (#758)
Note that this doesn't work on local doc builds, it'll now give: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///path/to/array-api/_site/versions.json. (Reason: CORS request not http)
1 parent fa04c35 commit c305b82

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: doc-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ sphinx_markdown_tables
55
sphinx_copybutton
66
sphinx_favicon
77
sphinx-math-dollar
8+
sphinxcontrib-jquery

Diff for: src/_array_api_conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"sphinx_copybutton",
3737
"sphinx_favicon",
3838
"sphinx_markdown_tables",
39+
"sphinxcontrib.jquery",
3940
]
4041

4142
autosummary_generate = True

0 commit comments

Comments
 (0)