Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/zarr-http-server/changes/4311.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The docs now render the release notes as a page instead of linking to
`CHANGELOG.md` on GitHub, so each docs version shows its own changelog.
2 changes: 1 addition & 1 deletion packages/zarr-http-server/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ Reads are all that is enabled by default: `GET` and `HEAD` are served, and
- [User guide](guide.md) — building apps, running them, byte ranges, CORS,
writes, notebooks, and Uvicorn configuration
- [API reference](api/index.md)
- [Changelog](https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-http-server/CHANGELOG.md)
- [Release notes](release-notes.md)
- [License (MIT)](https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-http-server/LICENSE.txt)
8 changes: 8 additions & 0 deletions packages/zarr-http-server/docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- CHANGELOG.md at the package root is the single source of truth: towncrier
writes releases into it, and PyPI and GitHub render it directly. This page
includes it so each docs build shows the release notes for its own version.
The page is not named changelog.md on purpose: on a case-insensitive
filesystem that name shadows CHANGELOG.md and the include resolves to the
page itself. -->

--8<-- "CHANGELOG.md"
10 changes: 9 additions & 1 deletion packages/zarr-http-server/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ nav:
- guide.md
- API Reference:
- api/index.md
- Changelog: https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-http-server/CHANGELOG.md
- Release notes: release-notes.md

watch:
- src
Expand Down Expand Up @@ -98,3 +98,11 @@ markdown_extensions:
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets:
# The package root lets docs/release-notes.md include the
# towncrier-managed CHANGELOG.md without moving it out of the package
# root, where PyPI and GitHub readers expect it.
base_path: [docs, .]
# Fail the build on an unresolvable include instead of silently
# rendering nothing.
check_paths: true
2 changes: 2 additions & 0 deletions packages/zarr-indexing/changes/4311.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The docs now render the release notes as a page instead of linking to
`CHANGELOG.md` on GitHub, so each docs version shows its own changelog.
2 changes: 1 addition & 1 deletion packages/zarr-indexing/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ the chain stays one description, and where the materialization boundary is.
- [Design notes](design-notes.md) — TensorStore lineage, box vs query, and
deliberate limits.
- [API reference](api/index.md)
- [Changelog](https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-indexing/CHANGELOG.md)
- [Release notes](release-notes.md)
· [License (MIT)](https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-indexing/LICENSE.txt)
8 changes: 8 additions & 0 deletions packages/zarr-indexing/docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- CHANGELOG.md at the package root is the single source of truth: towncrier
writes releases into it, and PyPI and GitHub render it directly. This page
includes it so each docs build shows the release notes for its own version.
The page is not named changelog.md on purpose: on a case-insensitive
filesystem that name shadows CHANGELOG.md and the include resolves to the
page itself. -->

--8<-- "CHANGELOG.md"
9 changes: 6 additions & 3 deletions packages/zarr-indexing/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ validation:
omitted_files: warn

# Top-level rank is consistent: collections (Guide, Examples, API Reference)
# and standalone artifacts (landing, ndsel spec, design notes, changelog).
# and standalone artifacts (landing, ndsel spec, design notes, release notes).
# Guide mirrors the docs/guide/ directory — its three pages are one
# collection (learn / look up / integrate), pydantic's Concepts pattern at
# small scale; navigation.indexes makes the Guide entry itself land on the
Expand Down Expand Up @@ -56,7 +56,7 @@ nav:
- '<code class="doc-symbol doc-symbol-toc doc-symbol-module"></code> <code>zarr_indexing.errors</code>': api/errors.md
- '<code class="doc-symbol doc-symbol-toc doc-symbol-module"></code> <code>zarr_indexing.testing.stateful</code>': api/testing_stateful.md
- '<code class="doc-symbol doc-symbol-toc doc-symbol-module"></code> <code>zarr_indexing.testing.strategies</code>': api/testing_strategies.md
- Changelog: https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-indexing/CHANGELOG.md
- Release notes: release-notes.md
# This site is a Read the Docs subproject of zarr-python; give readers a way
# back to the parent docs, which list every companion package.
- 'zarr-python ↪': https://zarr.readthedocs.io/
Expand Down Expand Up @@ -148,7 +148,10 @@ markdown_extensions:
- pymdownx.tabbed:
alternate_style: true
- pymdownx.snippets:
base_path: [docs, examples]
# The package root is last so docs/release-notes.md can include the
# towncrier-managed CHANGELOG.md without moving it out of the package
# root, where PyPI and GitHub readers expect it.
base_path: [docs, examples, .]
# Fail the build on an unresolvable include or missing region instead
# of silently rendering nothing. tests/test_doc_examples.py mirrors
# base_path when it verifies the include graph.
Expand Down
2 changes: 1 addition & 1 deletion packages/zarr-indexing/tests/test_doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

# Mirrors `pymdownx.snippets: base_path` in mkdocs.yml. If that list changes,
# change this one in the same commit.
SNIPPET_BASE_PATHS = (DOCS, STANDALONE_EXAMPLES)
SNIPPET_BASE_PATHS = (DOCS, STANDALONE_EXAMPLES, PACKAGE_ROOT)

_INCLUDE = re.compile(r'--8<--\s+"(?P<target>[^":\n]+?)(?::(?P<region>[^"\n]+))?"')

Expand Down
2 changes: 2 additions & 0 deletions packages/zarr-metadata/changes/4311.doc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The docs now render the release notes as a page instead of linking to
`CHANGELOG.md` on GitHub, so each docs version shows its own changelog.
2 changes: 1 addition & 1 deletion packages/zarr-metadata/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ and everything past that belongs to consumer libraries.
## Reference

- [API reference](api/index.md)
- [Changelog](https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-metadata/CHANGELOG.md)
- [Release notes](release-notes.md)
- [License (MIT)](https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-metadata/LICENSE.txt)
8 changes: 8 additions & 0 deletions packages/zarr-metadata/docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- CHANGELOG.md at the package root is the single source of truth: towncrier
writes releases into it, and PyPI and GitHub render it directly. This page
includes it so each docs build shows the release notes for its own version.
The page is not named changelog.md on purpose: on a case-insensitive
filesystem that name shadows CHANGELOG.md and the include resolves to the
page itself. -->

--8<-- "CHANGELOG.md"
10 changes: 9 additions & 1 deletion packages/zarr-metadata/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ nav:
- '<code class="doc-symbol doc-symbol-toc doc-symbol-module"></code> <code>zarr_metadata.v3.chunk_key_encoding</code>': api/v3/chunk_key_encoding.md
- '<code class="doc-symbol doc-symbol-toc doc-symbol-module"></code> <code>zarr_metadata.v3.codec</code>': api/v3/codec.md
- '<code class="doc-symbol doc-symbol-toc doc-symbol-module"></code> <code>zarr_metadata.v3.data_type</code>': api/v3/data_type.md
- Changelog: https://github.com/zarr-developers/zarr-python/blob/main/packages/zarr-metadata/CHANGELOG.md
- Release notes: release-notes.md
# This site is a Read the Docs subproject of zarr-python; give readers a way
# back to the parent docs, which list every companion package.
- 'zarr-python ↪': https://zarr.readthedocs.io/
Expand Down Expand Up @@ -109,3 +109,11 @@ markdown_extensions:
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets:
# The package root lets docs/release-notes.md include the
# towncrier-managed CHANGELOG.md without moving it out of the package
# root, where PyPI and GitHub readers expect it.
base_path: [docs, .]
# Fail the build on an unresolvable include instead of silently
# rendering nothing.
check_paths: true
Loading