data-apis / array-api

RFC document, tooling and other content related to the array API standard
https://data-apis.github.io/array-api/latest/
MIT License
204 stars 42 forks source link

Fix version switcher by using sphinxcontrib-jquery #758

Closed rgommers closed 3 months ago

rgommers commented 3 months ago

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)

As long as it works on the deployed site that is of later concern though. _EDIT: see here for the explanation about why it doesn't work without a server._

Closes gh-753

rgommers commented 3 months ago

It works on the CircleCI preview and there are no doc build warnings visible, so let's give this a go. Thanks for pointing out the fix @asmeurer!

rgommers commented 3 months ago

Confirmed, deployed fix works.