Ecosystem
A static site generator built for documentation. Markdown in, beautiful docs out. Pathways guide readers through content in curated sequences.
go install github.com/peios/trail@latest
trail build --dir ./my-docs --output ./_site
trail serve --dir ./my-docs --port 3000
Define curated reading sequences. Readers follow a guided path through your content with prev/next navigation.
Client-side search powered by Fuse.js. Keyboard navigation, result highlighting, instant results.
System preference detection with manual toggle. Persisted in localStorage, no flash on load.
Build-time highlighting via Chroma. No client-side JavaScript needed for code coloring.
Write diagrams in markdown, rendered client-side. Respects dark mode theme automatically.
Note, Warning, Important, Tip, and Caution callouts using GitHub-style syntax.
Show the same content multiple ways — CLI vs API vs config — with tabbed panels.
Edit markdown, the browser refreshes. SSE-based with file watching during development.
A /print/ page renders every article on one page for printing or saving as PDF.
Trail reads markdown files with YAML frontmatter from a content/ directory, pathway definitions from pathways/, and site config from trail.toml. It outputs a fully static site that can be deployed to GitHub Pages or any static host.
your-docs/
trail.toml # site config
pathways/
getting-started.toml # curated reading sequences
content/
identity/
understanding-identity.md
what-are-sids.md
access-control/
how-sds-work.md