From dd30622fb5d922ef17e83affe2fda4a653ebebe8 Mon Sep 17 00:00:00 2001 From: Johnny Greco Date: Tue, 21 Jul 2026 14:36:28 +0000 Subject: [PATCH] Add GitHub link to site header --- docs/stylesheets/dev-notes.css | 40 +++++++++++++++++++++++++++++++++- zensical.toml | 4 +++- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/docs/stylesheets/dev-notes.css b/docs/stylesheets/dev-notes.css index 08fee185..b2e9e37a 100644 --- a/docs/stylesheets/dev-notes.css +++ b/docs/stylesheets/dev-notes.css @@ -135,7 +135,41 @@ body { } .md-header__source { - display: none !important; + display: flex !important; + align-items: center; + width: auto; + max-width: none; + margin: 0 0 0 0.2rem; +} + +.md-header__source .md-source { + display: inline-flex; + align-items: center; + color: var(--openshell-ink); +} + +.md-header__source .md-source:hover, +.md-header__source .md-source:focus-visible { + color: var(--openshell-accent); + opacity: 1; +} + +.md-header__source .md-source__icon { + display: inline-flex; + align-items: center; + justify-content: center; + width: 1.8rem; + height: 1.8rem; +} + +.md-header__source .md-source__icon svg { + width: 1.1rem; + height: 1.1rem; + margin: 0; +} + +.md-header__source .md-source__repository { + display: none; } .md-overlay { @@ -331,6 +365,10 @@ body { color: var(--openshell-muted); } +.md-copyright__highlight > a:last-child { + margin-left: auto; +} + .md-copyright__highlight a:hover, .md-copyright__highlight a:focus-visible { color: var(--openshell-accent); diff --git a/zensical.toml b/zensical.toml index 9588e976..ebff6b9b 100644 --- a/zensical.toml +++ b/zensical.toml @@ -2,8 +2,9 @@ site_name = "OpenShell Research" site_description = "Research engineering Dev Notes and software documentation from the OpenShell team." site_author = "OpenShell Research Engineering" +repo_url = "https://github.com/NVIDIA/OpenShell-Research" +repo_name = "OpenShell Research on GitHub" copyright = """ - OpenShell Research OpenShell on GitHub """ docs_dir = "docs" @@ -32,6 +33,7 @@ generator = false custom_dir = "overrides" favicon = "assets/brand/favicon.svg" logo = "assets/brand/openshell-mark.svg" +icon.repo = "fontawesome/brands/github" features = [ "navigation.sections", "navigation.indexes",