Documentation Site Generator
Generate a static documentation website that displays all ArcKit project documents with full Mermaid diagram rendering, governance dashboard, and navigation.Command
Arguments
- scope (optional): Project ID or “all” for all projects (default: all)
Examples
Purpose
The Pages Generator creates adocs/index.html file that:
- Dashboard with KPI cards, donut charts, coverage bars, and governance checklist
- Displays all ArcKit artifacts in a navigable web interface
- Renders Mermaid diagrams inline
- Organizes documents by project with sidebar navigation
- Follows GOV.UK Design System styling
- Works with any static hosting provider (GitHub Pages, Netlify, Vercel, S3, etc.)
What’s Generated
Files Created
- docs/index.html - Main page with dashboard and document viewer
- docs/manifest.json - Document index with metadata
Features
Dashboard View (default landing page):- KPI cards: Total projects, total documents, completion percentage, compliance score
- Category donut charts: Document distribution by category
- Coverage bars: Requirements coverage, traceability, compliance
- Governance checklist: Quick status of key governance artifacts
- Project table: List of all projects with document counts
- Sidebar navigation for all projects
- Markdown rendering with syntax highlighting
- Mermaid diagram support (auto-rendered)
- Search functionality
- Responsive mobile layout
- GOV.UK Design System colors and typography
- Professional, accessible design
- Mobile-responsive
Document Organization
Global Documents
Project Documents
Known Artifact Types
| Category | Type Code | Pattern | Display Name |
|---|---|---|---|
| Discovery | |||
| REQ | ARC-*-REQ-*.md | Requirements | |
| STKE | ARC-*-STKE-*.md | Stakeholder Drivers | |
| RSCH | ARC-*-RSCH-*.md | Research Findings | |
| Planning | |||
| SOBC | ARC-*-SOBC-*.md | Strategic Outline Business Case | |
| PLAN | ARC-*-PLAN-*.md | Project Plan | |
| ROAD | ARC-*-ROAD-*.md | Roadmap | |
| Architecture | |||
| PRIN | ARC-*-PRIN-*.md | Architecture Principles | |
| HLDR | ARC-*-HLDR-*.md | High-Level Design Review | |
| DLDR | ARC-*-DLDR-*.md | Detailed Design Review | |
| DATA | ARC-*-DATA-*.md | Data Model | |
| WARD | ARC-*-WARD-*.md | Wardley Map | |
| DIAG | ARC-*-DIAG-*.md | Architecture Diagrams | |
| ADR | ARC-*-ADR-*.md | Architecture Decision Records | |
| Governance | |||
| RISK | ARC-*-RISK-*.md | Risk Register | |
| TRAC | ARC-*-TRAC-*.md | Traceability Matrix | |
| PRIN-COMP | ARC-*-PRIN-COMP-*.md | Principles Compliance | |
| ANAL | ARC-*-ANAL-*.md | Analysis Report | |
| CONF | ARC-*-CONF-*.md | Conformance Assessment | |
| Compliance | |||
| TCOP | ARC-*-TCOP-*.md | TCoP Assessment | |
| SECD | ARC-*-SECD-*.md | Secure by Design | |
| SECD-MOD | ARC-*-SECD-MOD-*.md | MOD Secure by Design | |
| AIPB | ARC-*-AIPB-*.md | AI Playbook Assessment | |
| ATRS | ARC-*-ATRS-*.md | ATRS Record | |
| DPIA | ARC-*-DPIA-*.md | DPIA | |
| JSP936 | ARC-*-JSP936-*.md | JSP 936 Assessment | |
| SVCASS | ARC-*-SVCASS-*.md | Service Assessment |
Deployment Options
The site uses relative paths and can be deployed to any static hosting provider:GitHub Pages
- Go to Settings > Pages
- Source: “Deploy from branch”
- Branch: “main”, folder: “/docs”
- Save
- Access at
https://{username}.github.io/{repo}/
Netlify
- New site from Git
- Build command: (leave empty)
- Publish directory:
/(root - serves docs/index.html) - Deploy
Vercel
- Import Git repository
- Framework: Other
- Root directory:
/ - Output directory: (leave default)
- Deploy
AWS S3 + CloudFront
- Create S3 bucket
- Upload entire repository
- Enable static website hosting
- Index document:
docs/index.html - Configure CloudFront distribution (optional)
Health Integration
To display health data on the dashboard:docs/health.json which the dashboard reads to populate health metrics.
Prerequisites
Thesync-guides hook handles ALL I/O:
- Syncs all guide
.mdfiles from plugin todocs/guides/ - Extracts titles from each guide
- Reads
.git/configfor repo name, owner, URL - Reads plugin VERSION
- Processes
pages-template.html→ writesdocs/index.html - Scans all projects, artifacts, vendors, external files → writes
docs/manifest.json
Example Output
Related Commands
arckit health- Generate health.json for dashboard integrationarckit story- Generate comprehensive project storyarckit presentation- Generate MARP presentation slides
Resources
- MARP - Presentation rendering
- Mermaid - Diagram syntax
- GOV.UK Design System