Skip to content

Add Hugo + Hextra documentation site under docs/#1

Merged
antonkomarev merged 5 commits into
mainfrom
docs/hugo-hextra-site
Jul 14, 2026
Merged

Add Hugo + Hextra documentation site under docs/#1
antonkomarev merged 5 commits into
mainfrom
docs/hugo-hextra-site

Conversation

@antonkomarev

@antonkomarev antonkomarev commented Jul 14, 2026

Copy link
Copy Markdown
Owner

What

Adds a self-contained Hugo + Hextra documentation site under docs/, published to GitHub Pages at https://antonkomarev.github.io/certel/.

The Hugo site lives entirely inside docs/ with its own module (docs/go.mod), isolated from the application's root go.mod — no build interference.

Changes

  • Content moved into docs/content/: metrics.md, alternatives.md, and all ADRs (git mv, history preserved); DBML schema → docs/static/schema.dbml.
  • Front-matter (title / weight) added to every page; ADR body # H1 folded into title to avoid a double heading under Hextra.
  • Link render hook (docs/layouts/_default/_markup/render-link.html) — Hextra 0.12.3 ships none, so bare relative .md cross-links (ADR↔ADR) would 404; the hook resolves them. Out-of-site links (README, config.example.yaml, schema.dbml) repointed to GitHub.
  • Landing page (docs/content/_index.md) with section cards.
  • Deploy workflow (.github/workflows/docs.yml) — Hugo extended build + Pages deploy, triggered on docs/**; --baseURL from configure-pages.
  • README: the four doc links updated to the published site / new file locations.
  • docs/.gitignore for Hugo build artifacts (public/, resources/, .hugo_build.lock).

Builds locally clean: 32 pages, 0 warnings, all links resolve.

Required one-time setup after merge

Repo Settings → Pages → Build and deployment → Source = GitHub Actions — otherwise the deploy job cannot publish.

Local preview

hugo server --source docs
# http://localhost:1313/certel/

Build a self-contained Hugo site in docs/ (its own module, isolated from the
app's go.mod) and publish it to GitHub Pages at antonkomarev.github.io/certel.

- Move existing docs into docs/content/ (metrics, alternatives, ADRs) and the
  DBML schema into docs/static/; add front-matter (title/weight) to each page.
- Add a link render hook so the ADRs' relative .md cross-links resolve, since
  Hextra ships none; repoint out-of-site links (README, config, schema) to
  GitHub.
- Add a landing page and a Pages deploy workflow (.github/workflows/docs.yml).
- Point the four README doc links at the published site / new file locations.
- Trigger the Docs workflow on pull_request too; gate the deploy job to
  non-PR events so PRs validate the build without publishing.
- Add --panicOnWarning so an unresolved cross-link (render-link hook warning)
  fails the build instead of shipping.
- Add Dependabot for github-actions and the docs Hugo module (Hextra).
@antonkomarev
antonkomarev merged commit 68619e8 into main Jul 14, 2026
6 checks passed
@antonkomarev
antonkomarev deleted the docs/hugo-hextra-site branch July 14, 2026 08:12
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