Skip to content

Commit

Permalink
Fix version switcher by using sphinxcontrib-jquery (#758)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
rgommers authored Mar 5, 2024
1 parent fa04c35 commit c305b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ sphinx_markdown_tables
sphinx_copybutton
sphinx_favicon
sphinx-math-dollar
sphinxcontrib-jquery
1 change: 1 addition & 0 deletions src/_array_api_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx_copybutton",
"sphinx_favicon",
"sphinx_markdown_tables",
"sphinxcontrib.jquery",
]

autosummary_generate = True
Expand Down

0 comments on commit c305b82

Please sign in to comment.