title: Docs Maintenance¶
Docs Maintenance¶
How to preview, update, and publish this manual.
Preview locally (Windows)¶
- Install Python 3 (if not installed).
- Install MkDocs and Material:
- pip install mkdocs mkdocs-material
- Start the local server:
- mkdocs serve
- Open the URL shown in the terminal (usually http://127.0.0.1:8000).
Editing tips¶
- Keep pages task-focused and concise.
- Use admonitions:
- Note, Tip, Warning, Info
- Prefer headings that match UI labels.
- Add screenshots under docs/assets/images/ and reference them with relative paths.
Navigation (mkdocs.yml)¶
- All pages must be listed under the nav tree in
mkdocs.yml. -
Indentation is critical. Use 2 spaces per level. Example:
nav:
- Programs:
- Overview: programs/index.md
- Dashboard: programs/dashboard.md
- Development: programs/development.md
- Implementation:
- Overview: programs/implementation/index.md
- Details (Lifecycle): programs/implementation/details.md
- Initiation: programs/implementation/initiation.md
- Planning: programs/implementation/planning.md
- Activities: programs/implementation/activities.md
- Progress: programs/implementation/progress.md
- Indicators: programs/implementation/indicators.md
- Execution: programs/implementation/execution.md
- Progress Reports: programs/implementation/progress-reports.md
- Gantt Chart: programs/implementation/gantt-chart.md
- Programs:
-
Common YAML errors and fixes:
- mapping values are not allowed here → A line is mis-indented or mixed tabs/spaces. Ensure 2-space indentation only.
- expected
, but found '-' → A list item is placed where a map value is expected; align it under the correct parent.
Images and links¶
- Place images under
docs/assets/...; preferdocs/assets/programsfor Programs screenshots anddocs/assets/imagesfor general images. - Use relative links that end with
index.mdfor section overviews. Examples:- logistics/fleet/index.md (not just logistics/fleet/)
- ../inventory/index.md (not ../inventory/)
- If you see warnings like “target ... not found among documentation files,” either fix the path or add the missing image.
Build and validation¶
Quick build¶
- mkdocs build
- Builds static site into
site/. Fix any YAML errors first.
- Builds static site into
Live preview¶
- mkdocs serve
- Auto-reloads on save. Use this while editing.
Link check (manual)¶
- Watch the terminal output for unrecognized links suggestions like “Did you mean '.../index.md'?” and update the docs accordingly.
Optional: PDF export¶
- We can add mkdocs-with-pdf and a one-liner to build a single PDF manual if needed.