Repository navigation
#440 Documentation site (doc.typhondb.io): DocFX build, CI deploy, brand theme - #468
Merged
Merged
Conversation
nockawa
added a commit
that referenced
this pull request
Jul 10, 2026
…ing XML docs in Typhon bundle (PR #469) Fast-follow to #468 (doc.typhondb.io). All doc-site / packaging — no engine logic. - Dark default + brand accents (main.css/main.js): defaultTheme:'dark' to match the dark-only apex; switcher intact; AA-safe orange links (light #c26900, dark #ff8c00). - SVG pan/zoom lightbox: click a diagram -> full-screen overlay with true vector pan/zoom via vendored svg-pan-zoom (viewBox/matrix, crisp at any zoom); raster images get bitmap zoom. Fixes "opening an SVG gives no pan/zoom". - GA4: googleAnalyticsTagId in docfx.json; modern template injects gtag.js into every page <head> at build time. Verified across all page types. - Bundle sibling XML docs: Typhon.Engine.csproj packs Profiler/Protocol/ Schema.Definition .xml next to their DLLs -> IntelliSense for the whole bundle. PACKAGE.md links -> doc.typhondb.io + typhondb.io. - scripts/build-docs.ps1: native PowerShell twin of build-docs.sh (no Git Bash needed locally); CI still runs the .sh. - svg-pan-zoom BSD-2 LICENSE reproduced verbatim (vendor/svg-pan-zoom.LICENSE.txt).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR advances Typhon's documentation on two related fronts, both committed together in
d81e743:They're bundled because the API pages are only useful once the XML docs exist. Merging deploys the site to https://doc.typhondb.io (the
deployjob runs on push tomain; DNS + Pages custom-domain are already configured by the owner).Part 1 — Documentation site (#440)
Build pipeline —
scripts/build-docs.sh+doc/docfx.json(DocFX 2.78.3, pinned as a local tool for local↔CI parity).stage-api-bin.sh→doc/.api-bin/), not recompiled from source — Typhon's public attributes (TraceEvent/BeginParam) are source-generated and would fail DocFX's own Roslyn compile (CS0246).filterConfig.ymldocuments only the true public surface via the codebase's ownTyphon.Engine.Internalsboundary (analyzer TYPHON008): 636 → 384 API pages.in-depth-overview), Guides (guide+ Feature Catalog), Tools (Workbench + CLI), Demos (AntHill), API, Benchmarks (the CI-committedbenchmark/reports/).Robust API TOC — the generated API tree lives under
api/ref/(metadatadest), and a hand-authored, stabledoc/api/toc.yml(Overview+ aReferencenode includingref/toc.yml) sits above it. Because it's never regenerated, the API landing's left TOC survives any build command — including the all-in-onedocfx doc/docfx.json --serve. This replaced a fragile post-metadata inject step.Brand theme — a light custom template (
doc/templates/typhon/public/main.css) mirrors the typhondb.io apex: orange#ff8c00accent (AA-safe#c26900for link text in light mode), Inter + JetBrains Mono, and the apex's entity-grid mark reused as both favicon and header logo. Plussitemap.xml, host-rootrobots.txt, and "Edit this page" links (_gitContribute).CI/CD —
.github/workflows/build-docs.yml(replaces the deadbuild-documentation.yml):build-docs.sh→ assemble/latest/bundle +CNAME+ root redirect +robots.txt+.nojekyll→upload-pages-artifact→deploy-pages.mainbuild and deploy. Uses GitHub's artifact-based Pages model (nogh-pagesbranch)./latest/(relocatable bundles) so versioning can be layered later without rework.Part 2 — XML-doc publication pass
Public XML documentation across the four shipped assemblies (
Typhon.Engine,Typhon.Profiler,Typhon.Protocol,Typhon.Schema.Definition) — this is the ~140 engine.csfiles, the source generators, and the.csprojchanges in the diff.<see cref="…"/>for type/member refs (not<c>); generics use{…}.Deferred (follow-ups, not in this PR)
claude/restructuring pass).Verification
Doc build is green on CI (the
buildjob ofbuild-docs.ymlon this PR). Brand accent, API TOC (landing + type pages), favicon/header logo, and--serverobustness were all confirmed in a headless browser locally. The heavyaws-gate/pack-checkchecks run here because of the Part-2 engine changes (as intended).🤖 Generated with Claude Code
https://claude.ai/code/session_016LWhJqY8FJznYVBjL6uPas