From 24cbf27493b00843f48eb6d3efed577798cbd00f Mon Sep 17 00:00:00 2001 From: Yao Yue Date: Tue, 28 Apr 2026 23:41:20 -0700 Subject: [PATCH 1/2] Add GitHub repo link to h2histogram site TOC Adds a static link to iopsystems/histogram at the top of the right-rail "On this page" minimap, with the GitHub mark icon and a divider separating it from the auto-generated TOC entries. Visible only on screens >=1080px (existing TOC breakpoint). Co-Authored-By: Claude Opus 4.7 (1M context) --- site/src/template.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/site/src/template.html b/site/src/template.html index 868e938..2468263 100644 --- a/site/src/template.html +++ b/site/src/template.html @@ -68,6 +68,26 @@ margin-bottom: 0.5rem; } + aside.toc .toc-repo { + display: inline-flex; + align-items: center; + gap: 0.4rem; + font-size: 13px; + color: var(--theme-foreground-muted); + text-decoration: none; + margin-bottom: 1rem; + padding-bottom: 0.75rem; + border-bottom: 1px solid var(--theme-foreground-faintest); + } + + aside.toc .toc-repo:hover { + color: var(--theme-foreground); + } + + aside.toc .toc-repo svg { + flex-shrink: 0; + } + aside.toc ol { list-style: none; padding: 0; @@ -102,6 +122,12 @@