diff --git a/docs/assets/stylesheets/extra.css b/docs/assets/stylesheets/extra.css
index 281a223..ab62cf4 100644
--- a/docs/assets/stylesheets/extra.css
+++ b/docs/assets/stylesheets/extra.css
@@ -638,6 +638,36 @@
border-bottom-color: var(--zz-muted-color);
}
+/* ── Version fact in header source widget ─────────────────────────────────── */
+
+/* Layout: repo name on row 1, stars+version on row 2 side by side */
+.md-source__repository {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ row-gap: 0;
+}
+
+.zz-repo-name {
+ width: 100%; /* forces repo name onto its own line */
+ order: 0;
+}
+
+/* JS-injected stars/forks
: row 2, left */
+.md-source__repository > .md-source__facts:not(.zz-version-facts) {
+ order: 1;
+ margin-top: 0.1rem;
+ flex-shrink: 0;
+}
+
+/* Static version : row 2, right — separator via gap */
+.zz-version-facts {
+ order: 2;
+ margin-top: 0.1rem;
+ margin-left: 0.4rem;
+ flex-shrink: 0;
+}
+
/* ── Footer copyright ─────────────────────────────────────────────────────── */
.md-copyright__highlight {
diff --git a/mkdocs.yml b/mkdocs.yml
index f97522f..18116a2 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -39,6 +39,7 @@ theme:
- navigation.indexes
- navigation.path
- navigation.top
+ - navigation.header.version
- navigation.footer
- search.highlight
- search.suggest
@@ -141,7 +142,7 @@ extra_css:
extra:
build_date: !ENV [BUILD_DATE, "dev"]
generator: false
- project_version: "0.4.0rc4"
+ version: "0.4.0rc4"
social:
- icon: fontawesome/brands/github
link: https://github.com/PythonWoods/zenzic
diff --git a/overrides/partials/source.html b/overrides/partials/source.html
new file mode 100644
index 0000000..16ee59c
--- /dev/null
+++ b/overrides/partials/source.html
@@ -0,0 +1,23 @@
+{# SPDX-FileCopyrightText: 2026 PythonWoods #}
+{# SPDX-License-Identifier: Apache-2.0 #}
+{#
+ source.html — extends Material's default with a version fact row.
+ The version fact mirrors .md-source__facts (stars/forks) so it aligns
+ at the same left edge as those items (inside .md-source__repository).
+#}
+
+
+ {% set icon = config.theme.icon.repo or "fontawesome/brands/git-alt" %}
+ {% include ".icons/" ~ icon ~ ".svg" %}
+
+
+
{{ config.repo_name }}
+ {% if config.extra.version %}
+
+ -
+ {{ config.extra.version }}
+
+
+ {% endif %}
+
+
diff --git a/pyproject.toml b/pyproject.toml
index 32838e2..f115ad8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -182,8 +182,8 @@ replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "mkdocs.yml"
-search = 'project_version: "{current_version}"'
-replace = 'project_version: "{new_version}"'
+search = 'version: "{current_version}"'
+replace = 'version: "{new_version}"'
[[tool.bumpversion.files]]
filename = "CITATION.cff"