Skip to content

#436 Doc-site polish: dark default, SVG pan/zoom lightbox, GA4 + ship sibling XML docs in Typhon bundle - #469

Merged
nockawa merged 1 commit into
mainfrom
feature/440-docsite-polish
Jul 10, 2026
Merged

nockawa merged 1 commit into
mainfrom
feature/440-docsite-polish

Conversation

@nockawa

@nockawa nockawa commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Fast-follow to #468 (which shipped the doc site at doc.typhondb.io). Part of epic #436.

What

  • Dark default + brand accents — doc/templates/typhon/public/main.css + main.js set defaultTheme: 'dark' to match the dark-only typhondb.io apex; the switcher still works. Orange accent carried into both themes with AA-safe link colors (light #c26900, dark #ff8c00).
  • SVG pan/zoom lightbox — clicking a diagram opens a full-screen overlay with true vector pan/zoom via vendored svg-pan-zoom (viewBox/matrix, crisp at any zoom), instead of navigating to the raw .svg. Raster images get a plain bitmap zoom. This is what actually fixes the "opening an SVG gives no pan/zoom" issue — it was not live before this PR.
  • Google Analytics (GA4) — _googleAnalyticsTagId: "G-NJ9FF28G41" in doc/docfx.json; the modern template injects the canonical gtag.js loader + config into every page <head> at build time (no template/JS edit). Verified present across landing / api / tools / demos / generated type pages.
  • Ship sibling XML docs in the Typhon NuGet bundle — Typhon.Engine.csproj now packs Typhon.Profiler / Typhon.Protocol / Typhon.Schema.Definition .xml alongside their DLLs, so inline IntelliSense works for the whole bundled surface, not just Typhon.Engine. PACKAGE.md links point to doc.typhondb.io + typhondb.io.
  • scripts/build-docs.ps1 — native PowerShell twin of build-docs.sh for local Windows builds (no Git Bash / WSL needed). CI continues to use the .sh on Linux; the two are kept in lockstep.

Verification

  • build-docs.ps1 Debug → 0 errors, 22 known warnings; gtag snippet confirmed in generated _site pages.
  • svg-pan-zoom BSD-2 license reproduced verbatim in doc/templates/typhon/public/vendor/svg-pan-zoom.LICENSE.txt (© Andrea Leofreddi) — closes the one redistribution-compliance gap for the vendored minified file.
  • Branch cut fresh off main (post-#440 Documentation site (doc.typhondb.io): DocFX build, CI deploy, brand theme #468 squash) → diff is exactly these 9 files, nothing already-merged.

Follow-up (post-merge)

  • After build-docs.yml deploys, verify GA via GA4 → Reports → Realtime against https://doc.typhondb.io/.
  • No consent banner yet (public dev-docs; flagged). Cookieless alternatives (Plausible/GoatCounter) remain an option if wanted later.

🤖 Generated with Claude Code

https://claude.ai/code/session_016LWhJqY8FJznYVBjL6uPas

@nockawa
nockawa merged commit 58f10f6 into main Jul 10, 2026
12 checks passed
@nockawa
nockawa deleted the feature/440-docsite-polish branch July 10, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant