From 5f755e7a2434626bd1cc77a9804533a971ba6762 Mon Sep 17 00:00:00 2001 From: Mikkel Garcia Date: Wed, 17 Jun 2026 08:18:17 -0600 Subject: [PATCH] docs: add top announcement banner linking to gptdiff-js + live demos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Override the Material theme's announce block so every docs page shows a top banner promoting the browser port (gptdiff-js) and its live demos โ€” mirroring the banner on the example pages. Co-Authored-By: Claude Opus 4.8 (1M context) --- mkdocs.yml | 1 + overrides/main.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 overrides/main.html diff --git a/mkdocs.yml b/mkdocs.yml index 8d069a2..2a43d93 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,7 @@ extra_css: theme: name: material + custom_dir: overrides features: - content.code.annotate palette: diff --git a/overrides/main.html b/overrides/main.html new file mode 100644 index 0000000..e44b1c0 --- /dev/null +++ b/overrides/main.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{# + Top announcement bar shown on every page โ€” mirrors the banner on the + gptdiff-js example pages. Points at the browser port and its live demos. +#} +{% block announce %} + gptdiff-js + โ€” run gptdiff in the browser, no command line +  ยท  + live demos +{% endblock %}