Skip to content

Documentation Site - Deployment Summary

Date: 2026-02-09 Status: ✅ Live URL: https://smallthinkingmachines.github.io/harombe/

What Was Built

A professional documentation website using MkDocs with Material theme, featuring:

  • 27+ pages of comprehensive documentation
  • Dark/light mode support
  • Full-text search
  • Code syntax highlighting
  • Mermaid diagram support
  • Mobile-responsive design
  • Automatic deployment via GitHub Actions

Infrastructure

Dependencies Added

Nix Environment (flake.nix):

# Documentation tools
pythonEnv.pkgs.mkdocs
pythonEnv.pkgs.mkdocs-material

Python Package (pyproject.toml):

dev = [
    # ... existing deps
    "mkdocs>=1.5",
    "mkdocs-material>=9.5",
    "mkdocs-mermaid2-plugin>=1.1",
    "mkdocs-git-revision-date-localized-plugin>=1.2",
]

Configuration

MkDocs Config (mkdocs.yml):

  • Material theme with dark/light mode
  • Navigation structure with tabs
  • Search with suggestions
  • Code copy buttons
  • Git revision dates
  • Mermaid diagram support

Deployment

GitHub Actions (.github/workflows/docs.yml):

  • Triggers on changes to docs/** or mkdocs.yml
  • Builds with Python 3.12
  • Deploys to gh-pages branch
  • Publishes to GitHub Pages automatically

New Documentation Pages

Created Pages

  1. Landing Page (docs/index.md)
  2. Feature overview with cards
  3. Quick start guide
  4. Architecture diagram
  5. Performance metrics table
  6. Use cases

  7. Installation Guide (docs/getting-started/installation.md)

  8. System requirements
  9. Three installation methods (pip, Nix, manual)
  10. Optional components (Docker, gVisor, Vault)
  11. Configuration setup
  12. Troubleshooting

  13. Quick Start (docs/getting-started/quickstart.md)

  14. 5-minute getting started
  15. Interactive chat example
  16. Programmatic usage examples
  17. Memory integration
  18. Security features
  19. Common tasks

  20. Configuration Reference (docs/getting-started/configuration.md)

  21. Environment variables
  22. Configuration file format (YAML)
  23. Programmatic configuration
  24. Complete settings reference
  25. Environment-specific configs
  26. Best practices

  27. Architecture Overview (docs/architecture/overview.md)

  28. High-level architecture diagram
  29. Core components deep-dive
  30. Data flow diagrams
  31. Design principles
  32. Performance characteristics
  33. Scalability discussion
  34. Technology stack
  35. Deployment architectures

  36. Security Overview (docs/security/overview.md)

  37. Security philosophy
  38. Five layers of defense
  39. Threat model with scenarios
  40. Security metrics
  41. Compliance overview
  42. Security checklist
  43. Quick start for security
  44. Best practices

Site Structure

Home (index.md)
├── Getting Started
│   ├── Installation (NEW)
│   ├── Quick Start (NEW)
│   └── Configuration (NEW)
├── Architecture
│   ├── Overview (NEW)
│   ├── Memory & RAG (existing)
│   ├── Vector Store (existing)
│   ├── Voice Interface (existing)
│   ├── MCP Gateway (existing)
│   └── Security Architecture (existing)
├── Security
│   ├── Overview (NEW)
│   ├── Quick Start (existing)
│   ├── Architecture (existing)
│   ├── Foundation (existing)
│   ├── Sandboxing (existing)
│   ├── Credentials (existing)
│   ├── Network (existing)
│   ├── Audit Logging (existing)
│   └── HITL Gates (existing)
├── Deployment
│   ├── Production Guide (existing)
│   └── Performance Results (existing)
├── Development
│   ├── Contributing (existing)
│   └── Development Setup (existing)
├── Phases
│   ├── Phase 0 (existing)
│   ├── Phase 4 (existing)
│   ├── Phase 4.8 (existing)
│   └── Phase 5 (existing)
└── User Guides
    ├── Browser Usage (existing)
    ├── Code Sandbox (existing)
    └── Voice Setup (existing)

Total: 27+ pages

Features

  • Tabs: Top-level navigation with expandable sections
  • Sections: Collapsible sidebar navigation
  • Footer: Previous/Next page links
  • Top Button: Quick scroll to top
  • Breadcrumbs: Current location in hierarchy
  • Full-text: Search across all pages
  • Suggestions: Auto-suggest as you type
  • Highlighting: Search term highlighting in results
  • Share: Share search results with URL

Content

  • Code Blocks: Syntax highlighting for Python, Bash, YAML, JSON, etc.
  • Copy Button: One-click code copying
  • Admonitions: Note, Warning, Tip, Danger boxes
  • Tables: Responsive tables
  • Mermaid Diagrams: Architecture and flow diagrams
  • Task Lists: Interactive checkboxes

Mobile

  • Responsive: Works on all screen sizes
  • Touch-friendly: Easy navigation on mobile
  • Fast: Optimized for mobile networks

SEO

  • Meta Tags: Proper meta descriptions
  • Structured Data: Schema.org markup
  • Social Cards: OpenGraph for sharing
  • Sitemap: XML sitemap for search engines

Deployment Process

Manual Deployment

# Build locally
mkdocs build

# Deploy to GitHub Pages
mkdocs gh-deploy --force

Automatic Deployment

Whenever you push changes to:

  • docs/**/*.md
  • mkdocs.yml
  • .github/workflows/docs.yml

GitHub Actions automatically:

  1. Checks out the code
  2. Sets up Python 3.12
  3. Installs MkDocs and plugins
  4. Builds the documentation
  5. Deploys to gh-pages branch
  6. Publishes to GitHub Pages

Live URL: https://smallthinkingmachines.github.io/harombe/

Performance

Build Time

  • Local: ~2-3 seconds
  • GitHub Actions: ~30-45 seconds (includes setup)

Site Performance

  • Load Time: <2 seconds (initial)
  • Search: <100ms (instant results)
  • Navigation: <50ms (instant)

Maintenance

Adding New Pages

  1. Create markdown file in docs/ directory
  2. Add to nav: section in mkdocs.yml
  3. Commit and push - auto-deploys!

Updating Content

  1. Edit any .md file in docs/
  2. Commit and push - auto-deploys!

Checking Locally

# Serve locally with live reload
mkdocs serve

# Open http://127.0.0.1:8000 in browser
# Changes reload automatically

Best Practices

Documentation

  1. Use Relative Links: [link](../path/to/page.md)
  2. Add Frontmatter: Optional metadata at top of file
  3. Include Examples: Code examples for all features
  4. Keep DRY: Link to detailed docs, don't duplicate
  5. Check Links: Run mkdocs build --strict to catch broken links

Writing Style

  1. Active Voice: "Install dependencies" not "Dependencies should be installed"
  2. Present Tense: "The agent runs" not "The agent will run"
  3. Short Sentences: Easy to read and translate
  4. Code Blocks: Always include language identifier
  5. Headings: Use sentence case, not Title Case

Structure

  1. Overview First: What is this? Why use it?
  2. Quick Start: Get running quickly
  3. Deep Dive: Detailed explanation
  4. Reference: Complete API/config reference
  5. Examples: Real-world usage

Known Issues

Warnings During Build

Some warnings appear during build about missing links:

  • phases/phase5-implementation-plan.md - Phase 5 plan needs to be moved to docs/phases/
  • api-reference/*.md - API reference pages not yet created
  • examples/*.py - Example files not in docs directory

These don't prevent deployment, just create 404s if users click those links.

Resolution

To fix:

  1. Move phase plans to docs/phases/ directory
  2. Create API reference pages
  3. Add examples to documentation or link to repo

Future Enhancements

Planned

  1. Version Selector: Support multiple versions (using mike)
  2. API Reference: Auto-generated API docs from docstrings
  3. Blog: News and updates section
  4. Tutorials: Step-by-step guides
  5. Videos: Embedded tutorial videos
  6. Community: Link to Discord/Slack
  7. Changelog: Automatically generated from commits

Optional

  1. Translations: Multi-language support (i18n)
  2. Comments: Discussion on each page (utterances/giscus)
  3. Analytics: Track popular pages (Google Analytics)
  4. Custom Domain: docs.harombe.dev
  5. PDF Export: Generate PDF of entire docs

Resources

Documentation

  • MkDocs: https://www.mkdocs.org/
  • Material Theme: https://squidfunk.github.io/mkdocs-material/
  • Markdown Guide: https://www.markdownguide.org/

Examples

  • FastAPI: https://fastapi.tiangolo.com/ (excellent docs)
  • SQLModel: https://sqlmodel.tiangolo.com/
  • LangChain: https://python.langchain.com/

Summary

Documentation site live at https://smallthinkingmachines.github.io/harombe/ ✅ Auto-deployment via GitHub Actions ✅ 27+ pages of comprehensive documentation ✅ Professional design with Material theme ✅ Full-text search across all content ✅ Mobile-responsive and fast ✅ Zero cost (all free tools and hosting)

Next Steps:

  • Add API reference documentation
  • Create tutorials and guides
  • Fix broken links (move phase5 plan to docs/phases/)
  • Consider custom domain (docs.harombe.dev)

Document Version: 1.0 Last Updated: 2026-02-09 Maintainer: Documentation Team