Reuse shared Docs head on the credits page
Co-Authored-By: Codex <noreply@openai.com>
3 files changed,
+8
−4
implementation/open-source-credits/proposal.json+4 −2internal/docs/views/credits.html+1 −1internal/docs/views/head.html+3 −1
CI passed — run details
diff --git a/implementation/open-source-credits/proposal.json b/implementation/open-source-credits/proposal.json| index e0346d3..296f18e 100644 |
| --- a/implementation/open-source-credits/proposal.json |
| +++ b/implementation/open-source-credits/proposal.json |
| @@ -20,7 +20,8 @@ |
| "Help in list and editor; two catalog keys", |
| "scripts/credits.py generates and checks Go, bundled npm, locked Rust graph, Rust standard-library and font notices", |
| "Asset hash and production Go graph freshness guard", |
| - "Bounded notice files and package provenance, pinned yrs notice checksum" |
| + "Bounded notice files and package provenance, pinned yrs notice checksum", |
| + "Credits head calls the shared Docs header partial, preserving its24px brand-link floor" |
| ], |
| "validation": [ |
| "Focused route/menu/render tests passed", |
| @@ -28,6 +29,7 @@ |
| "Full repository gate passed after final generator bounds amendment", |
| "Full native editor browser drive44/44 passed", |
| "Four credits mutations caught missing content/styles, changed bundle and changed notice; all restored", |
| - "Tab-stop regression reproduced on deployed source; corrected sequence check caught injected extra toolbar stop; restored" |
| + "Tab-stop regression reproduced on deployed source; corrected sequence check caught injected extra toolbar stop; restored", |
| + "Final shared-head correction: brand measured24px at320/1200px, full repository gate and44/44 browser checks pass" |
| ] |
| } |
diff --git a/internal/docs/views/credits.html b/internal/docs/views/credits.html| index a2973ee..fdfb4a5 100644 |
| --- a/internal/docs/views/credits.html |
| +++ b/internal/docs/views/credits.html |
| @@ -1,4 +1,4 @@ |
| {{define "title"}}{{.Title}}{{end}} |
| {{define "brand"}}<a rst-shell-brand href="/">{{.Brand}}</a>{{end}} |
| -{{define "head"}}<link rel="icon" type="image/svg+xml" href="/static/icon.svg"><link rel="stylesheet" href="/static/credits.css">{{end}} |
| +{{define "head"}}{{template "docs/head" .}}<link rel="stylesheet" href="/static/credits.css">{{end}} |
| {{define "content"}}{{template "estilo/credits" .Credits}}{{end}} |
diff --git a/internal/docs/views/head.html b/internal/docs/views/head.html| index 125e95d..92fda50 100644 |
| --- a/internal/docs/views/head.html |
| +++ b/internal/docs/views/head.html |
| @@ -46,4 +46,6 @@ |
| upstream yet: spec §10 says a component we keep editing belongs |
| upstream, and if the sibling apps want the same floor this is the |
| rule to send. It is inert on sign-in, which hides the bar. */}} |
| -{{define "head"}}<link rel="icon" type="image/svg+xml" href="/static/icon.svg"><style>[rst-shell-brand]{display:inline-flex;align-items:center;min-block-size:24px}</style>{{end}} |
| +{{define "docs/head"}}<link rel="icon" type="image/svg+xml" href="/static/icon.svg"><style>[rst-shell-brand]{display:inline-flex;align-items:center;min-block-size:24px}</style>{{end}} |
| + |
| +{{define "head"}}{{template "docs/head" .}}{{end}} |