Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.47 KB

File metadata and controls

86 lines (62 loc) · 2.47 KB

Documentation Site

The Forge documentation site is built with Zensical — the next-gen successor to Material for MkDocs by the same team. Source lives in docs/, configuration in zensical.toml.

Setup

uv sync --extra docs

That's it. No separate venv, no separate pip install.

Local Preview

uv run zensical serve

Opens at http://localhost:8000 with live reload on save.

Build Static Site

uv run zensical build

Output goes to the site/ directory (gitignored).

Deploy to GitHub Pages

Build first, then push to the gh-pages branch:

uv run zensical build
uv run ghp-import -n -p -f site

Flags: -n adds a .nojekyll file (required for GitHub Pages to serve correctly), -p pushes to the remote, -f force-pushes.

GitHub Pages serves the gh-pages branch automatically. Enable it once under Repository Settings → Pages → Source → Deploy from branch → gh-pages.

The site will be live at https://forge-sdlc.github.io/forge/.

Automatic deployment

CI deploys on every push to main that touches docs/, zensical.toml, CONTRIBUTING.md, or README.md — no manual deploy needed after the initial setup.

Structure

docs/
├── index.md                  # Home page
├── getting-started.md        # Quick start
├── guide/                    # User-facing workflow guides
│   ├── feature-workflow.md
│   ├── bug-workflow.md
│   ├── labels.md
│   └── pr-commands.md
├── dev/                      # Developer documentation
│   ├── setup.md
│   ├── testing.md
│   └── contributing.md
├── skills/                   # Skills system documentation
│   ├── index.md
│   ├── authoring.md
│   └── defaults.md
├── reference/                # Reference documentation
│   ├── api.md
│   ├── config.md
│   └── proposals.md
├── developer-guide.md        # Existing comprehensive developer guide
└── images/                   # Logo and diagrams

Adding a Page

  1. Create docs/section/page.md
  2. Add it to the nav array in zensical.toml
  3. Run uv run zensical serve to preview

Notes

  • site/ is gitignored — never commit it
  • GLightbox is enabled natively via zensical.extensions.glightbox
  • Mermaid diagrams render automatically in fenced code blocks tagged mermaid
  • Dark/light mode uses Lucide icons (lucide/sun, lucide/moon)