Commit dc13b71
authored
Add PyPI and spec version shields to homepage (#115)
* Add PyPI and spec version shields to homepage
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.
* Open shield links in a new tab
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.1 parent 554437d commit dc13b71
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
0 commit comments