Skip to content

Fix version switcher by using sphinxcontrib-jquery #758

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

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

rgommers
Copy link
Member

@rgommers rgommers commented Mar 5, 2024

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

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)
@rgommers rgommers added the Deployment Specification deployment (e.g., to a website). label Mar 5, 2024
@rgommers
Copy link
Member Author

rgommers commented Mar 5, 2024

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 rgommers merged commit c305b82 into data-apis:main Mar 5, 2024
@rgommers rgommers deleted the fix-version-switcher branch March 5, 2024 15:54
@rgommers
Copy link
Member Author

rgommers commented Mar 5, 2024

Confirmed, deployed fix works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deployment Specification deployment (e.g., to a website).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

version switcher on deployed website disappeared
1 participant