# kumu/docs architecture

> Architecture diagram of the GitHub repository kumu/docs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kumu/docs
- Repository: https://github.com/kumu/docs

## Overview

##### Project type and purpose
- This is a documentation-site project for Kumu, built with GitBook.
- The repo contains Markdown sources, assets (images, PDFs, JSON), a GitBook configuration (`.gitbook.yaml`), a SUMMARY.md to drive navigation, and a small custom script under `scripts/`.
- Purpose: author, structure, build and publish Kumu’s user docs as a static website, integrating embedded media (Vimeo), downloads, and reference guides.

##### File structure
- Top-level:
– Config files: `.gitbook.yaml`, `.bookignore`, `.gitignore`, `README.md`, `SUMMARY.md`
– Directories of content: `getting-started/`, `guides/`, `overview/`, `faq/`, `disciplines/`, `enterprise/`, `about/`, etc.
– GitBook artifacts: `.gitbook/`
- Pattern: classic GitBook structure—source Markdown → GitBook CLI builds static HTML/CSS/JS → deployed.

##### README for insights
- High-level navigation hints (Getting Started, Guides, Overview).
- No custom microservices or back-end code here; focal point is docs generation and hosting.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Development Environment"
        GitHubRepo["GitHub Repo\n(source Markdown, config, assets)"]:::repo
        ContentSource["Content Source\n(Markdown directories)"]:::repo
        StaticAssets["Static Assets\n(images, icons, downloadables)"]:::storage
    end

    subgraph "Build Infrastructure"
        CICD["CI/CD Pipeline"]:::build
        CustomScript["Color-scale Generator\n(scripts/generate-color-scale-images.js)"]:::build
        BuildEngine["GitBook CLI\n(Static Site Generator)"]:::build
        GeneratedArtifacts["GitBook Generated Artifacts\n(.gitbook/assets/)"]:::storage
    end

    subgraph "Production Hosting"
        Hosting["Hosting Service\n(GitHub Pages/Netlify)"]:::cloud
        CDN["CDN"]:::cloud
    end

    Browser["End-User Browser"]:::external
    Vimeo["Vimeo"]:::external
    Typeform["Typeform"]:::external

    GitHubRepo -->|"contains content"| ContentSource
    GitHubRepo -->|"contains assets"| StaticAssets
    GitHubRepo -->|"push code"| CICD

    CICD -->|"trigger script"| CustomScript
    CICD -->|"trigger build"| BuildEngine

    ContentSource -->|"read markdown"| BuildEngine
    StaticAssets -->|"read assets"| BuildEngine
    CustomScript -->|"generate images"| StaticAssets
    BuildEngine -->|"output site"| GeneratedArtifacts

    GeneratedArtifacts -->|"deploy"| Hosting
    Hosting -->|"cache assets"| CDN
    CDN -->|"serve site"| Browser

    Browser -.->|"embed media"| Vimeo
    Browser -.->|"embed widgets"| Typeform

    classDef repo fill:#D6EAF8,stroke:#21618C,color:#1B4F72;
    classDef build fill:#D5F5E3,stroke:#196F3D,color:#145A32;
    classDef storage fill:#FDEBD0,stroke:#B9770E,color:#7E5109;
    classDef cloud fill:#EBF5FB,stroke:#2874A6,color:#1B4F72;
    classDef external fill:#F5EEF8,stroke:#7D3C98,color:#4A235A;

    click GitHubRepo "https://github.com/kumu/docs/blob/main/.gitbook.yaml"
    click GitHubRepo "https://github.com/kumu/docs/blob/main/.gitignore"
    click GitHubRepo "https://github.com/kumu/docs/blob/main/README.md"
    click GitHubRepo "https://github.com/kumu/docs/blob/main/SUMMARY.md"
    click BuildEngine "https://github.com/kumu/docs/tree/main/.gitbook/"
    click BuildEngine "https://github.com/kumu/docs/blob/main/.bookignore"
    click BuildEngine "https://github.com/kumu/docs/blob/main/.gitbook.yaml"
    click CustomScript "https://github.com/kumu/docs/blob/main/scripts/generate-color-scale-images.js"
    click ContentSource "https://github.com/kumu/docs/tree/main/getting-started/"
    click ContentSource "https://github.com/kumu/docs/tree/main/guides/"
    click ContentSource "https://github.com/kumu/docs/tree/main/overview/"
    click ContentSource "https://github.com/kumu/docs/tree/main/faq/"
    click ContentSource "https://github.com/kumu/docs/tree/main/disciplines/"
    click ContentSource "https://github.com/kumu/docs/tree/main/enterprise/"
    click ContentSource "https://github.com/kumu/docs/tree/main/about/"
    click ContentSource "https://github.com/kumu/docs/tree/main/frequently-asked-questions/"
    click StaticAssets "https://github.com/kumu/docs/tree/main/images/"
    click StaticAssets "https://github.com/kumu/docs/tree/main/icons/"
    click StaticAssets "https://github.com/kumu/docs/tree/main/content/"
    click GeneratedArtifacts "https://github.com/kumu/docs/tree/main/.gitbook/assets/"
```
