Skip to content

docs(zarr-metadata): docs-site polish: repo link, titles, RTD build skips, branding - #264

Closed
d-v-b wants to merge 4 commits into
mainfrom
docs/zarr-metadata-repo-link
Closed

docs(zarr-metadata): docs-site polish: repo link, titles, RTD build skips, branding#264
d-v-b wants to merge 4 commits into
mainfrom
docs/zarr-metadata-repo-link

Conversation

@d-v-b

@d-v-b d-v-b commented Jul 29, 2026

Copy link
Copy Markdown
Owner

🤖 AI text below 🤖

Follow-ups to zarr-developers#4208, polishing the newly-live https://zarr-metadata.readthedocs.io/ site.

Repo link points at the package directory

The material header source widget linked to the zarr-python repository root, presenting the site as zarr-python's. It now links packages/zarr-metadata labeled zarr-python/packages/zarr-metadata, and edit_uri is absolute — with a subpath in repo_url, mkdocs would otherwise concatenate the two into a broken edit link. (Star/fork counts still show zarr-python's numbers; Material parses owner/repo from the URL, so that's inherent to the monorepo.)

Homepage browser title

The homepage <title> rendered as "zarr-metadata - zarr-metadata" because Material appends the site name to explicit frontmatter titles. Dropping the frontmatter title makes it fall back to the site name alone.

Skip unrelated RTD pull request builds

Both RTD projects rebuilt on every PR regardless of what changed. Each .readthedocs.yaml now has a post_checkout rule that exits 183 (cancel build, report success) when the PR diff against origin/main does not touch its half of the repo: the zarr-metadata project skips PRs that leave packages/zarr-metadata untouched, and the zarr-python project skips PRs confined to it. Scoped to external versions because origin/main is only a meaningful diff base for PR builds; push builds to latest still always run.

Site branding

The package site gets the zarr logo and favicon (copied from the zarr-python docs _static) instead of stock Material icons.

All changes verified with strict local builds; pre-commit passes on every changed file.

🤖 Generated with Claude Code

The material header source widget linked to the zarr-python repository
root, presenting the site as zarr-python's. Link the package directory
and label it zarr-python/packages/zarr-metadata instead. edit_uri
becomes absolute because mkdocs would append it to repo_url's subpath.

Assisted-by: ClaudeCode:claude-fable-5
d-v-b added 2 commits July 29, 2026 21:08
Material appends the site name to explicit frontmatter titles, so the
homepage browser title rendered as 'zarr-metadata - zarr-metadata'.
Without the frontmatter it falls back to the site name alone.

Assisted-by: ClaudeCode:claude-fable-5
…favicon

Both Read the Docs projects rebuilt on every pull request regardless of
what changed. Each config now cancels PR builds via exit code 183 when
the diff against origin/main does not touch its half of the repo:
the zarr-metadata project skips PRs that leave packages/zarr-metadata
untouched, and the zarr-python project skips PRs confined to it. Scoped
to external versions because origin/main is only a meaningful diff base
for PR builds.

The package site also gets the zarr logo and favicon, copied from the
zarr-python docs, instead of stock Material icons.

Assisted-by: ClaudeCode:claude-fable-5
@d-v-b d-v-b changed the title docs(zarr-metadata): point the site's repo link at the package directory docs(zarr-metadata): docs-site polish: repo link, titles, RTD build skips, branding Jul 29, 2026
Read the Docs strips shell quoting from build commands, so the quoted
':(exclude)packages/zarr-metadata' pathspec reached /bin/sh unquoted and
the bare parenthesis was a syntax error, failing every zarr PR build.
Use git's quote-free :! exclude form, which survives the stripping;
reproduced the mangling and verified both forms against dash locally.

Assisted-by: ClaudeCode:claude-fable-5
@d-v-b d-v-b closed this Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant