Skip to content

Add PyPI and spec version shields to homepage#115

Merged
chris-colinsky merged 2 commits into
mainfrom
feature/docs-polish-homepage-shields
Jun 1, 2026
Merged

Add PyPI and spec version shields to homepage#115
chris-colinsky merged 2 commits into
mainfrom
feature/docs-polish-homepage-shields

Conversation

@chris-colinsky
Copy link
Copy Markdown
Member

@chris-colinsky chris-colinsky commented Jun 1, 2026

Summary

Last of five docs-polish items. Adds two dynamic shields to docs/index.md between the tagline and the button row:

  • PyPI version (img.shields.io/pypi/v/openarmature): pulls the published version from PyPI's API.
  • Spec version (img.shields.io/badge/dynamic/toml): reads tool.openarmature.spec_version from the pyproject.toml on main.

Both auto-update on every publish or spec bump; no maintenance burden. Mirrors the same shield URLs the README has used for several releases, so the rendering quirks are already known.

Position between tagline and "Get started" button so a reader sees the current version before the call to action.

Test plan

  • mkdocs strict build clean
  • No em dashes added
  • Local mkdocs serve, eyeball the homepage in both light + dark mode
  • Confirm PyPI shield shows 0.11.0 and spec shield shows 0.38.0
  • Click each shield: PyPI to https://pypi.org/project/openarmature/, spec to the spec repo

Out of scope

  • README badge row (CI / Python / License) — not replicated on the homepage; the "current version" ask was specifically about version visibility on the docs site.
  • mkdocs hook reading pyproject.toml directly — shields are simpler and the dynamic-toml shield already does the job.

Wraps up the docs-polish sweep

This is the final PR in the five-item docs-polish sweep that landed alongside #111-#114. Sequence: patterns expansion (#111), vLLM production notes (#112), stale-ref + em-dash sweep (#113), README + homepage pitch refresh (#114), version shields (this PR).

The docs homepage now carries dynamic shields between the tagline
and the button row: the PyPI package version (sourced from
img.shields.io/pypi/v/openarmature) and the pinned spec version
(sourced from img.shields.io/badge/dynamic/toml against the
pyproject.toml on main). Both auto-update on every publish or spec
bump with zero maintenance.

Mirrors the same shield URLs the README has used for several
releases, so the rendering quirks are already known. Position is
between tagline and Get started button so a reader sees the current
version before the call to action.
Copilot AI review requested due to automatic review settings June 1, 2026 21:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds version visibility to the docs homepage by surfacing the current published package version and the pinned spec version as dynamic shields.

Changes:

  • Add PyPI version and spec-version shields to docs/index.md between the tagline and CTA buttons.
  • Document the homepage shield addition in CHANGELOG.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/index.md Adds PyPI + spec-version shield badges to the homepage hero area.
CHANGELOG.md Notes the homepage badges under Unreleased → Added.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/index.md Outdated
The two homepage shield links didn't carry the
``target='_blank' rel='noopener'`` attr_list that every other
external link on docs/index.md sets (View on GitHub button,
Read the spec link). Clicking a badge would have navigated the
visitor out of the docs site instead of opening a new tab. Add
the same attr_list to both shields so they follow the page
convention.
@chris-colinsky chris-colinsky merged commit dc13b71 into main Jun 1, 2026
6 checks passed
@chris-colinsky chris-colinsky deleted the feature/docs-polish-homepage-shields branch June 1, 2026 22:07
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.

2 participants