This repository contains the source for the GIG Cymru architecture documentation website. The following instructions are for an autonomous AI agent to work with this repository.
View all available commands at any time:
just --listThe published documentation is available at: https://gigcymru.github.io/architecture/
This project uses Just as a command runner (migrated from Make).
- Python 3.13 or higher
- uv for package/env management
- npm for markdown linting
- Just for command running
- Git
Install the uv package manager if not already installed:
just installInstall the required Python packages and sync the environment:
just syncInstall Node.js dependencies for linting:
npm installRun the full setup and start the development server:
justThis will run: install → sync → build → run
Build the documentation site (output to ./site directory):
just buildStart the local development server (auto-reloads on file changes):
just runThe site will be available at http://127.0.0.1:8000/
Run all quality assurance checks (linting, spell checking, and link checking):
just qaImportant: Always run quality checks before committing to fix any issues.
Run markdown linting only:
just lintRun spell checking only:
just spellNote: In GitHub Actions PRs, spelling issues are displayed inline in the Files Changed view using the
official streetsidesoftware/cspell-action GitHub Action.
Run internal link checking only:
just check-linksRun sync manifest verification only:
just verify-sync-manifestAll of these checks run automatically as part of just qa and in the GitHub PR workflow.
- All documentation (in Markdown format) to be published on the site lives under the
doc/path. - Markdown documents should adhere to a 120 character line limit, unless it breaks URLs/links/special elements.
- The documentation is built using Zensical, a modern static site generator.
- ADRs reside under the
doc/decisions/path. - ADRs should follow the agreed template:
doc/design-authority/dhcw/architecture-decision-record-template.md - See
doc/decisions/meta-decisions/architecture-decision-records-naming-conventions/index.mdfor naming conventions and rules.
- Architecture Principles reside under the
doc/principles/path.
- Mermaid is used to add diagrams to Markdown files.
- See
doc/decisions/meta-decisions/use-mermaid-for-documenting-diagrams/index.mdfor information.
Before committing changes:
- Always run quality checks:
just qaand fix any issues reported - Always run build:
just buildand fix any WARNINGS raised - Test the site locally:
just runand verify your changes render correctly
Convert markdown templates to Word documents using Pandoc:
just wordThis converts the ADR and design overview templates to .docx format.
Build and deploy documentation to GitHub Pages (requires push permissions):
just deployThe site will be deployed to: https://gigcymru.github.io/architecture/
This repository supports multiple development environments:
- GitHub Codespaces (Recommended) - Pre-configured cloud environment
- Local Development - Traditional local setup with uv and npm
- Container-based - Using Podman or Docker
- Just-based Workflow - Modern command runner (current approach)
See the README.md for detailed setup instructions for each option.