Repository navigation
Release builds: test_version accepts release versions; tag docs use the /stable/ URL - #1534
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the release-version and documentation alignment changes.
No open issues 🎉
What changed in this PR
This PR addresses post-2.0.0 release issues by allowing release versions in the version test and aligning documentation URLs and wording with release-tag builds.
Changes:
- Retains the
> 1.8.1version guard without requiring a prerelease version. - Uses
/stable/documentation URLs for release tags and/dev/otherwise. - Distinguishes development snapshots from releases in
llms.txt, with tests covering development, stable, and versioned URLs.
| File | Description |
|---|---|
test/unit_tests/test_version.py |
Allows release versions while preserving the downstream version guard. |
docs/whats_new.rst |
Records the release-test and documentation fixes. |
docs/tests/test_agent_docs.py |
Tests URL-specific snapshot and release wording. |
docs/conf.py |
Configures canonical and social metadata URLs from the environment, defaulting to /dev/. |
docs/build_agent_docs.py |
Selects development or release wording for llms.txt. |
docs/_templates/layout.html |
Uses the configured documentation URL in JSON-LD metadata. |
.github/workflows/docs.yml |
Selects the documentation URL by ref and passes it to documentation generation. |
Review effort: Balanced
|
Voyager Job
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1534 +/- ##
=======================================
Coverage 91.36% 91.36%
=======================================
Files 170 170
Lines 22115 22115
=======================================
Hits 20206 20206
Misses 1909 1909 🚀 New features to boost your workflow:
|
Post-2.0.0 follow-ups from the release:
test/unit_tests/test_version.pyused to assertis_prerelease, so the test suite inside the 2.0.0 sdist failed on its own version. The test now checks only__version__ > 1.8.1, which is the guard NeuralBench relies on.docs.ymlsetsBRAINDECODE_DOCS_URLtohttps://braindecode.org/stable/onrefs/tags/v*and to/dev/for every other ref.docs/conf.pyuses that URL forhtml_baseurl(canonical and sitemap), the Open Graph URL and image, and the JSON-LD block in_templates/layout.html. An unset or empty value falls back to/dev/.docs/build_agent_docs.pywrites "moving development snapshot" intollms.txtonly for/dev/URLs. Release builds now say "It documents the Braindecode X release". A new test indocs/tests/test_agent_docs.pycovers/dev/,/stable/and/2.0/.The whats_new entries are under 2.1.0 → Code health.
Verification results from the Voyager Job will be posted in a comment below.