Commit 151b539
committed
feat(docs): publish 23 markdown docs as routed pages under /docs/
Closes the biggest GTM gap from the website review: 25 markdown
files lived in the repo unrendered. Now each is a real page with
its own canonical URL, OG tags, and an SEO-friendly title.
- src/pages/docs/[slug].astro: dynamic route. import.meta.glob
loads every ../../*.md eagerly; getStaticPaths emits all slugs
except README and backlog. Each page renders with a sidebar
showing the full doc list, plus the article body.
- src/pages/docs/index.astro: Diataxis-organized landing for the
docs section — Tutorials / How-to / Reference cards, sourced from
the curated doc list.
- Header.astro nav now links the internal Docs route; pkg.go.dev
is reframed as "API" so users hit the prose docs first.
- public/sitemap.xml expanded to enumerate all 23 doc pages plus
the docs index. Migration pages get priority 0.9 — highest-intent
keywords ("looplab fsm alternative", "go statechart library").
- Layout's existing OG/Twitter/JSON-LD propagation works
out-of-the-box per page.
- New global styles for .markdown-body cover headings, code blocks,
tables, blockquotes, links, hr — matches the dark theme.
Build now emits 26 pages (was 2).
Source: 4-expert website review — GTM dimension top-3 ROI move.1 parent 9fb05ed commit 151b539
31 files changed
Lines changed: 8193 additions & 3 deletions
File tree
- docs
- dist
- docs
- public
- src
- components
- pages/docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments