From 3f57f951ef85b8e196041c7a5316496fd8d4b251 Mon Sep 17 00:00:00 2001 From: Federico Kamelhar Date: Fri, 15 May 2026 12:21:55 -0400 Subject: [PATCH] docs: PyPI version badge across docs site MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three coordinated edits surface the published locus-sdk version throughout the mkdocs site, matching the README badge from #198: - docs/index.md — shields.io badge under the H1, Oracle-red. - overrides/partials/source.html — adds the badge to the mkdocs header right slot, alongside the existing GitHub icon. - docs/stylesheets/locus.css — .md-header__pypi selector for the header badge: inline-flex layout, subtle hover lift, narrower padding under 60em viewports. All three render the same shields.io image, which auto-updates when a new release publishes to PyPI. Signed-off-by: Federico Kamelhar --- docs/stylesheets/locus.css | 24 ++++++++++++++++++++++++ overrides/partials/source.html | 11 +++++++++++ 2 files changed, 35 insertions(+) diff --git a/docs/stylesheets/locus.css b/docs/stylesheets/locus.css index 3d9f0be7..d2f8bb06 100644 --- a/docs/stylesheets/locus.css +++ b/docs/stylesheets/locus.css @@ -662,6 +662,30 @@ html { .md-drawer .md-header__source.md-header__github { color: #FFFFFF; } + +/* Header right slot — PyPI version badge (shields.io image) sits to the + right of the GitHub icon. Matches the OCI/GitHub vertical rhythm. */ +.md-header__source.md-header__pypi { + display: inline-flex; + align-items: center; + padding: 0.25rem 0.4rem; + margin-left: 0.25rem; + border-radius: 6px; + transition: background-color 0.15s, transform 0.15s; +} +.md-header__source.md-header__pypi:hover { + background-color: rgba(199, 70, 52, 0.08); + transform: translateY(-1px); +} +.md-header__pypi-badge { + height: 20px; + width: auto; + display: block; +} +@media (max-width: 60em) { + .md-header__source.md-header__pypi { padding: 0.15rem 0.25rem; margin-left: 0.15rem; } + .md-header__pypi-badge { height: 18px; } +} .md-nav--primary .md-header__source.md-header__github:hover { color: #FFFFFF; opacity: 0.8; diff --git a/overrides/partials/source.html b/overrides/partials/source.html index 72b2d3ca..521ccc4d 100644 --- a/overrides/partials/source.html +++ b/overrides/partials/source.html @@ -25,3 +25,14 @@ + + + PyPI version +