docs: migrate documentation site to the Hextra theme - #139
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Also rename _build front matter key to build in preview/_index.md, as _build was removed in Hugo 0.145.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Brian Morton <brian@mmmhm.com>
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.
Summary
Migrates the Hugo documentation site from the hugo-book theme to Hextra, installed as a Hugo Module. Delivers a modern landing page, sidebar-navigated docs, built-in full-text search, and richer shortcodes — while preserving every live URL and leaving the standalone Resource Preview WASM tool untouched.
Design spec:
docs/superpowers/specs/2026-07-24-hextra-theme-transition-design.mdImplementation plan:
docs/superpowers/plans/2026-07-24-hextra-theme-transition.mdWhat changed
hugo-bookgit submodule; addeddocs/go.mod/docs/go.sumimportinggithub.com/imfing/hextrapinned to v0.12.3.tryfunction). Updated in CI.docs/hugo.tomlfor Hextra: navbar + GitHub link, edit-this-page, footer, theme toggle, and search enabled (FlexSearch →en.search-data.json).baseURL/titleunchanged;unsafegoldmark retained;localereplaces the deprecatedlanguageCode.content/docs/behind a new Hextra landing page (content/_index.md, hero + feature cards) and a docs section root.content/preview/stays at root.aliasesfor every pre-migration URL (sections, leaf pages,/reference/and/examples/*baked into their generators so they survive regeneration). Redirect stubs verified.callouts; added a self-containedbuttonshortcode for the tools page.content/docs/; updated.gitignore, theverify-generateddiff path, and lint globs; removed the theme submodule checkout; added a Hugo module cache (pinnedactions/cacheto a commit SHA).Verification
make preview-wasm docs-examples docs-crd-referencesucceeds.hugo --minifybuilds 53 pages, zero errors (only a harmless.Site.Datadeprecation WARN from Hextra's own theme code)./preview/(WASM intact), search index, and all 13+ alias redirect stubs present. Nohugo-bookreferences remain. markdownlint clean.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com