๐ฆ Documentation Site Generator Agent Specification
๐ Purpose
The Documentation Site Generator Agent is responsible for scaffolding, configuring, and maintaining MkDocs-based documentation sites across the ConnectSoft platform โ from initial project creation through navigation management, CI/CD pipeline configuration, ADR tooling integration, and deployment to Azure Static Web Apps or GitHub Pages.
It ensures every ConnectSoft project, module, and edition has a consistent, navigable, and automatically deployed documentation site built from the ConnectSoft.DocumentationTemplate.
๐งพ Documentation that exists but isn't published is invisible. This agent makes every document built, deployed, and discoverable as a live site.
๐ฏ Primary Goals
Goal
Description
๐ฆ Scaffold MkDocs projects
Generate new documentation sites from ConnectSoft.DocumentationTemplate with proper structure
๐งญ Manage mkdocs.yml navigation
Automatically update nav trees when new documents, ADRs, or API docs are added
โ๏ธ Configure CI/CD pipelines
Generate Azure Pipelines or GitHub Actions workflows for building and deploying doc sites
๐ Integrate ADR tooling
Configure log4brains integration and ADR navigation within the documentation site
๐ Deploy to hosting targets
Manage deployments to Azure Static Web Apps, GitHub Pages, or internal preview environments
๐ Keep sites current
Detect documentation structure changes and trigger site rebuilds automatically
๐ง Core Role in the Factory
The Documentation Site Generator Agent sits within the Documentation and Knowledge Management cluster as the build and deploy layer for all documentation content. While other agents (Documentation Writer, API Documentation, ADR) produce content, this agent ensures that content is assembled, navigated, and published as a cohesive site.
๐งฉ Position in the Documentation and Knowledge Management Cluster
Layer
Cluster
Description
๐ฆ Build & Deploy Layer
Documentation & Knowledge Management
Assembles documentation content into deployable MkDocs sites
๐งญ Navigation Manager
Maintains mkdocs.yml nav structure as content evolves
โ๏ธ Pipeline Orchestrator
Configures and triggers CI/CD for documentation deployments
flowchart TD
DOC_WRITER[๐ Documentation Writer Agent] -->|documentation_structure_changed| DOC_SITE[๐ฆ Documentation Site Generator Agent]
ADR_AGENT[๐ ADR Agent] -->|adr_published| DOC_SITE
API_DOC[๐ก API Documentation Agent] -->|api_docs_updated| DOC_SITE
DEVOPS[โ๏ธ DevOps Engineer Agent] -->|project_created| DOC_SITE
DOC_SITE --> AZURE_SWA[โ๏ธ Azure Static Web Apps]
DOC_SITE --> GH_PAGES[๐ GitHub Pages]
DOC_SITE --> STUDIO[๐ Studio Agent]
Hold "Alt" / "Option" to enable pan & zoom
โก Triggering Events
Event
Description
project_created
A new ConnectSoft project or microservice is created, requiring documentation site scaffolding
documentation_structure_changed
New documents, sections, or ADRs are added that require mkdocs.yml nav updates
release_published
A new release triggers documentation site rebuild with updated version references
doc_site_config_drift_detected
The mkdocs.yml is out of sync with the actual documentation file structure
doc_deployment_failed
A previous documentation deployment failed and requires correction and retry
๐ Responsibilities and Deliverables
๐งฐ Key Responsibilities
Responsibility
Description
๐ฆ MkDocs Project Scaffolding
Generate mkdocs.yml, docs/ folder structure, and theme configuration from ConnectSoft.DocumentationTemplate
๐งญ Navigation Management
Automatically update mkdocs.yml nav when documents are added, moved, or removed
โ๏ธ CI/CD Pipeline Generation
Create Azure Pipelines YAML or GitHub Actions workflows for building and deploying MkDocs sites
๐ ADR Integration
Configure log4brains tooling and add ADR sections to the documentation site navigation
๐จ Theme and Plugin Configuration
Apply ConnectSoft Material for MkDocs theme, search plugin, mermaid diagrams, and admonitions
๐ Deployment Management
Deploy built sites to Azure Static Web Apps or GitHub Pages with proper routing and custom domains
๐ Drift Detection and Repair
Detect when mkdocs.yml nav drifts from the actual file structure and auto-repair
๐ค Deliverables
Deliverable Type
Description
๐ฆ documentation-site
Complete MkDocs project with docs/, mkdocs.yml, theme, and plugins configured
๐งญ mkdocs-config
Updated mkdocs.yml with current navigation tree, plugins, and theme settings
โ๏ธ doc-pipeline
CI/CD pipeline definition (Azure Pipelines YAML or GitHub Actions) for doc site build and deploy
๐ log4brains-config
log4brains configuration file and ADR navigation integration
๐ Example Output: mkdocs.yml
site_name : ConnectSoft VetClinic Documentation
site_url : https://docs.connectsoft.ai/vetclinic
repo_url : https://github.com/connectsoft/vetclinic
theme :
name : material
palette :
primary : indigo
accent : teal
features :
- navigation.tabs
- navigation.sections
- search.suggest
- content.code.copy
plugins :
- search
- mermaid2
markdown_extensions :
- admonition
- pymdownx.details
- pymdownx.superfences :
custom_fences :
- name : mermaid
class : mermaid
format : !!python/name:pymdownx.superfences.fence_code_format
nav :
- Home : index.md
- Architecture :
- Overview : architecture/overview.md
- Decisions :
- ADR-0001 Use MassTransit : decisions/adr-0001-use-masstransit.md
- ADR-0002 Multi-Tenant Strategy : decisions/adr-0002-multi-tenant-strategy.md
- API Reference :
- Appointments API : api/appointments.md
- Notifications API : api/notifications.md
- Modules :
- Appointment Service : modules/appointment-service/README.md
- Notification Service : modules/notification-service/README.md
- Guides :
- Getting Started : guides/getting-started.md
- SDK Integration : guides/sdk-integration.md
๐ Example Output: CI/CD Pipeline
trigger :
branches :
include :
- main
paths :
include :
- docs/**
- mkdocs.yml
pool :
vmImage : ubuntu-latest
steps :
- task : UsePythonVersion@0
inputs :
versionSpec : '3.11'
- script : |
pip install mkdocs-material pymdown-extensions mkdocs-mermaid2-plugin
mkdocs build --strict
displayName : 'Build MkDocs Site'
- task : AzureStaticWebApp@0
inputs :
app_location : 'site'
output_location : ''
displayName : 'Deploy to Azure Static Web Apps'
๐ค Collaboration Interfaces
Agent
Input Provided
Documentation Writer Agent
New or updated Markdown documents requiring nav integration
ADR Agent
Published ADRs that need to be added to the decisions section
API Documentation Agent
API reference pages for inclusion in the API section
DevOps Engineer Agent
Project creation events and CI/CD infrastructure context
๐ค Downstream Agents (Outputs Consumed By)
Agent
Output Consumed
DevOps Engineer Agent
CI/CD pipeline definitions for documentation deployment
Knowledge Management Agent
Site structure metadata for knowledge indexing
Studio Agent
Documentation site health, deployment status, and freshness metrics
๐ Collaboration Flow
flowchart TD
DOC_WRITER[๐ Documentation Writer] --> DOC_SITE[๐ฆ Doc Site Generator]
ADR_AGENT[๐ ADR Agent] --> DOC_SITE
API_DOC[๐ก API Documentation] --> DOC_SITE
DEVOPS_IN[โ๏ธ DevOps Engineer] --> DOC_SITE
DOC_SITE --> DEVOPS_OUT[โ๏ธ DevOps Engineer]
DOC_SITE --> KM[๐ง Knowledge Management]
DOC_SITE --> STUDIO[๐ Studio Dashboard]
DOC_SITE --> HOSTING[โ๏ธ Hosting Targets]
Hold "Alt" / "Option" to enable pan & zoom
๐ง Memory and Knowledge
๐ Pre-Embedded Knowledge
Domain
Description
๐ฆ MkDocs configuration
Full understanding of mkdocs.yml schema, Material theme options, and plugin ecosystem
โ๏ธ CI/CD pipeline patterns
Azure Pipelines and GitHub Actions templates for MkDocs build and deploy
๐ log4brains integration
Configuration patterns for log4brains ADR browsing within MkDocs sites
๐จ ConnectSoft.DocumentationTemplate
Standard project structure, theme configuration, and nav conventions
โ๏ธ Azure Static Web Apps
Deployment configuration, custom domain setup, and routing rules
๐ง Short-Term Memory
Capability
Description
๐ Active project context
Current documentation project being scaffolded or updated
๐งญ Nav diff state
Changes detected between current mkdocs.yml nav and file system structure
โ๏ธ Pipeline generation context
Target hosting platform and CI/CD system for current deployment
๐ง Long-Term Memory
Memory Type
Storage
Purpose
๐ฆ Site registry
doc-sites-index.yaml
Registry of all documentation sites with hosting URLs and last deploy dates
๐งญ Nav history
nav-change-history.yaml
Tracks navigation changes across documentation site rebuilds
โ๏ธ Pipeline templates
Template library
Reusable CI/CD pipeline patterns by hosting target
๐ Deployment metrics
doc-deploy.metrics.json
Build success rates, deployment frequency, and site freshness
โ
Validation
๐งช Validation Checks
Check
Description
๐ฆ MkDocs build success
Site must build successfully with mkdocs build --strict (no warnings)
๐งญ Nav completeness
Every .md file in docs/ must be reachable from the nav tree
๐ Link integrity
All internal links between documentation pages must resolve
โ๏ธ Pipeline validity
Generated CI/CD pipelines must be syntactically valid YAML
๐จ Theme consistency
Theme configuration must match ConnectSoft documentation standards
๐ ADR integration
log4brains configuration must be valid and ADRs must appear in the decisions nav
๐ Retry and Correction
Scenario
Correction
MkDocs build failure
Parse error output, fix mkdocs.yml syntax or missing files, rebuild
Orphaned documents not in nav
Auto-add to appropriate nav section based on file path conventions
Deployment failure
Check hosting credentials, retry deployment with backoff
Theme plugin incompatibility
Fall back to base Material theme without conflicting plugins
๐ Observability Hooks
Event
Trigger
Payload
DocSiteScaffolded
New documentation site created
projectId, templateVersion, traceId
DocSiteNavUpdated
Navigation tree updated
addedPages, removedPages, traceId
DocSiteDeployed
Documentation site successfully deployed
siteUrl, hostingTarget, buildDuration, traceId
DocSiteDeployFailed
Deployment failed
reason, hostingTarget, traceId
DocSiteDriftDetected
Nav/structure drift detected
driftType, affectedFiles, traceId
๐งพ Summary and Positioning
The Documentation Site Generator Agent is the build and deploy engine for ConnectSoft documentation, ensuring every project has a:
๐ฆ Properly scaffolded MkDocs site with ConnectSoft theming and structure
๐งญ Current navigation that automatically reflects documentation additions and changes
โ๏ธ CI/CD pipeline for automated building and deployment on every change
๐ ADR integration with log4brains tooling for browsable architecture decisions
๐ Live deployment to Azure Static Web Apps or GitHub Pages with zero manual steps
flowchart TD
CONTENT_AGENTS[๐ Content Agents] --> DOC_SITE[๐ฆ Doc Site Generator]
DOC_SITE --> BUILD[๐จ MkDocs Build]
BUILD --> DEPLOY[๐ Deploy]
DEPLOY --> AZURE_SWA[โ๏ธ Azure Static Web Apps]
DEPLOY --> GH_PAGES[๐ GitHub Pages]
DOC_SITE --> STUDIO[๐ Studio Dashboard]
Hold "Alt" / "Option" to enable pan & zoom
Without this agent, documentation is a collection of loose Markdown files. With it, documentation becomes a live, navigable, automatically deployed knowledge portal that serves developers, stakeholders, and AI agents alike.