Getting Started Tutorial
This tutorial walks you through producing a multi‑repository Hugo documentation site in minutes.
Prerequisites
- Go toolchain (>=1.21) installed.
- Hugo installed (optional unless you want automatic static rendering).
- Git access tokens / SSH keys for the repositories you want to aggregate.
1. Install / Build
2. Initialize Configuration
This creates a starter config.yaml you can customize.
3. Add Repositories
Edit config.yaml and list repositories:
4. Run a Build
On success you’ll have:
site/hugo.yaml(generated Hugo config)site/content/<repo>/...(orcontent/<forge>/<repo>/...if multi‑forge)- Optional
site/public/if Hugo rendering enabled site/build-report.jsonwith metrics (doc_files_hashfingerprint)
5. Serve (Optional)
If you enabled Hugo rendering (for example with --render-mode always), serve the generated site directly:
Or run Hugo manually afterwards:
6. Incremental Workflow
Enable workspace persistence to reuse existing clones:
On subsequent runs, DocBuilder will:
- Reuse existing clones when possible
- Only fetch updates (git pull) instead of full clones
- Significantly speed up builds
7. Continuous Updates (Daemon Mode)
For live documentation updates, use daemon mode:
This will:
- Poll repositories for changes
- Automatically rebuild when changes detected
- Serve documentation with live reload
Or for local development without git polling:
8. Next Steps
- Customize landing pages with
templates/index/*.tmpl. - DocBuilder uses the Relearn theme exclusively for consistent documentation.
- Integrate with CI: compare
doc_files_hashbetween runs to skip downstream jobs.
Additional Commands
Linting Documentation
Validate documentation follows best practices:
You are ready to explore How‑To guides for specific tasks.
permalink[getting-started-tutorial](https://docs.home.luguber.info/_uid/4a61e911-03a6-4769-9e15-63d304572860/)