Skip to content

docs: the site is Hugo on choudoufu's layout - #104

Merged
lex00 merged 1 commit into
mainfrom
docs-hugo
Sep 12, 2026
Merged

docs: the site is Hugo on choudoufu's layout#104
lex00 merged 1 commit into
mainfrom
docs-hugo

Conversation

@lex00

@lex00 lex00 commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

The docs site is rebuilt as a Hugo site on choudoufu's layouts and stylesheet (INTENTIUS/choudoufu site/), replacing Astro/Starlight.

  • Landing: hero, three beats read from what-it-enables/ front matter, the same-policy-twice comparison, a consumer picker from data/consumers.yaml, a proof strip from data/figures.json.
  • Header: What it enables, Try it, a For-your-platform menu rendered from the consumer roster, Specification, GitHub, search (/).
  • Sections: what-it-enables, try-it, for-your-platform, spec (introduction, normative, reference, conformance, evidence). Every previous URL is an alias.
  • {{< figure "path" >}} quotes a figure and fails the build on a bad path; {{< consumers >}} renders the table; fences take {title="file"} and show it as a caption.
  • sync-spec.mjs writes content/spec/normative/, resolves ./x.md links, and points ./VERSION at GitHub. Linter roots follow; the generated pages are skipped.
  • CI and Pages build with peaceiris/actions-hugo at 0.162.1; just site and just site-serve [port] locally (needs brew install hugo).
  • Verified locally: 46 pages, 1169 internal links resolve, prose ratchet unchanged at 207.

The Astro/Starlight site is gone; docs/ is a Hugo site with choudoufu's
templates (site/layouts, site.css) and the same shape: a landing page
whose three beats are the what-it-enables pages' own front matter, a
header menu of consumers rendered from data/consumers.yaml, and a proof
strip whose figures come from data/figures.json. Pages quote a figure
with {{< figure "corpus.comparable" >}}, which fails the build on a bad
path rather than rendering nothing.

Sections: what-it-enables, try-it, for-your-platform (hub plus a page per
consumer) and spec, which holds introduction, the generated normative
text, reference, conformance and evidence. Every old URL is an alias.
sync-spec.mjs writes content/spec/normative/ and resolves the spec files'
./x.md links to site paths. The prose linter reads the Hugo content tree,
skips the generated pages, and treats a shortcode as a number.

CI builds with peaceiris/actions-hugo; just site and just site-serve are
the local entry points. spec/README.md's first line said the
specification was empty; it is not.
@lex00
lex00 merged commit 8653f79 into main Sep 12, 2026
2 checks passed
@lex00
lex00 deleted the docs-hugo branch September 12, 2026 19:11
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