Skip to content

feat: allow NWB docs PR previews to use the widget - #579

Merged
neuromechanist merged 1 commit into
OpenScience-Collective:developfrom
bendichter:feature/nwb-docs-pr-previews
Oct 6, 2026
Merged

neuromechanist merged 1 commit into
OpenScience-Collective:developfrom
bendichter:feature/nwb-docs-pr-previews

Conversation

@bendichter

Copy link
Copy Markdown
Contributor

Refs #514.

Summary

Adds the Read the Docs PR preview origins of the six NWB docs PRs to the NWB community's cors_origins, so reviewers can try the widget on the preview build before merging. Without this, a question asked from a preview gets "API key required", because the preview origin is not on the allowlist. This follows what BIDS does for its two docs PRs.

They are exact origins, not a *.readthedocs.build wildcard, so no other Read the Docs project can use the NWB community's platform key. They are temporary: the config comment lists the PRs, and I will remove the entries once those are merged.

The previews use the production backend, so this takes effect for reviewers once it is in production.

The worker allowlist is updated by sync-worker-cors.yml after merge, as with #521.

Tests

  • osa validate src/assistants/nwb/config.yaml passes.
  • pytest tests/test_assistants/test_community_yaml_generic.py -k nwb: 17 passed, 3 skipped.
  • pytest -k cors -m "not network": 39 passed.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@neuromechanist
neuromechanist merged commit 17f8d4a into OpenScience-Collective:develop Oct 6, 2026
10 checks passed
neuromechanist added a commit that referenced this pull request Oct 7, 2026
…gins (#584)

The Unreleased section becomes 0.8.17, as the changelog's instructions say for a
release, with a new empty Unreleased above it. The NWB documentation preview
origins (#579) had no entry; they do now.

Not code: the changelog only. Tested: the changelog renders as before and
test_frontend_job_parity and the docs tests are unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants