# shenmian/notes architecture

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

- Interactive diagram: https://gitdiagram.com/shenmian/notes
- Repository: https://github.com/shenmian/notes

## Overview

##### Main System Components

The system appears to be a documentation/notes management system with the following key components:

a) Content Structure
- Documentation Root (docs/)
- Multiple Knowledge Domains
- Assets Management
- Font Resources

b) Build/Deploy System
- MkDocs Static Site Generator
- GitHub Workflows
- Custom Scripts

**┌─────────────────────────────────────────────┐**
- Documentation Site              │
- ┘
- ↑
**┌─────────────┬──────┴──────┬────────────────┐**
- Content    │   Build     │   Deployment   │
- Management │   System    │   Pipeline     │
- ┴─────────────┴────────────────┘

##### Component Details

a) Content Management (Rectangle, Blue):
- Knowledge Domains (Programming Languages, OS, Graphics, etc.)
- Asset Management (images, fonts)
- Documentation Structure

b) Build System (Hexagon, Green):
- MkDocs Configuration
- Custom Templates (overrides/)
- Theme Customization

c) Deployment Pipeline (Diamond, Orange):
- GitHub Actions Workflows
- Link Checking
- Deployment Process

##### Relationships and Data Flow

- Content → Build System (Content Processing)
- Build System → Deployment (Site Generation)
- Deployment → Public Site (Publication)

##### Technical Details

Annotations for:
- MkDocs Configuration Details
- GitHub Workflow Specifications
- Content Organization Rules
- Asset Management Strategy

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Documentation Site"
        MainSite["Knowledge Management System"]
    end

    subgraph "Content Management"
        ContentRoot["Documentation Root"]
        KnowledgeDomains["Knowledge Domains"]
        Assets["Assets Management"]:::asset
        Fonts["Font Resources"]:::asset
        
        ContentRoot --> KnowledgeDomains
        ContentRoot --> Assets
        ContentRoot --> Fonts

        subgraph "Domain Categories"
            OS["Operating Systems"]:::domain
            PL["Programming Languages"]:::domain
            CG["Computer Graphics"]:::domain
            PT["Penetration Testing"]:::domain
            DSA["Data Structures & Algorithms"]:::domain
            GEA["Game Engine Architecture"]:::domain
            CT["Computation Theory"]:::domain
        end

        KnowledgeDomains --> OS
        KnowledgeDomains --> PL
        KnowledgeDomains --> CG
        KnowledgeDomains --> PT
        KnowledgeDomains --> DSA
        KnowledgeDomains --> GEA
        KnowledgeDomains --> CT
    end

    subgraph "Build System"
        MkDocs["MkDocs Configuration"]:::build
        Templates["Custom Templates"]:::build
        ThemeCustom["Theme Customization"]:::build
        CustomScripts["Custom Scripts"]:::build

        MkDocs --> Templates
        MkDocs --> ThemeCustom
        MkDocs --> CustomScripts
    end

    subgraph "Deployment Pipeline"
        GHActions["GitHub Actions"]:::deploy
        LinkCheck["Link Checking"]:::deploy
        DeployProcess["Deployment Process"]:::deploy

        GHActions --> LinkCheck
        GHActions --> DeployProcess
    end

    ContentRoot --> MkDocs
    MkDocs --> GHActions
    GHActions --> MainSite

    classDef asset fill:#f9f,stroke:#333
    classDef domain fill:#ddf,stroke:#333
    classDef build fill:#9f9,stroke:#333
    classDef deploy fill:#ff9,stroke:#333

    click ContentRoot "https://github.com/ShenMian/notes/tree/main/docs"
    click Assets "https://github.com/ShenMian/notes/tree/main/docs/assets"
    click Fonts "https://github.com/ShenMian/notes/tree/main/fonts"
    click OS "https://github.com/ShenMian/notes/tree/main/docs/操作系统"
    click PL "https://github.com/ShenMian/notes/tree/main/docs/程序设计语言"
    click CG "https://github.com/ShenMian/notes/tree/main/docs/计算机图形学"
    click PT "https://github.com/ShenMian/notes/tree/main/docs/渗透测试"
    click DSA "https://github.com/ShenMian/notes/tree/main/docs/数据结构与算法"
    click GEA "https://github.com/ShenMian/notes/tree/main/docs/游戏引擎架构"
    click CT "https://github.com/ShenMian/notes/tree/main/docs/计算理论"
    click MkDocs "https://github.com/ShenMian/notes/blob/main/mkdocs.yml"
    click Templates "https://github.com/ShenMian/notes/tree/main/overrides"
    click ThemeCustom "https://github.com/ShenMian/notes/blob/main/overrides/main.html"
    click CustomScripts "https://github.com/ShenMian/notes/tree/main/scripts"
    click GHActions "https://github.com/ShenMian/notes/tree/main/.github/workflows"
    click LinkCheck "https://github.com/ShenMian/notes/blob/main/.github/workflows/check_links.yml"
    click DeployProcess "https://github.com/ShenMian/notes/blob/main/.github/workflows/deploy.yml"
```
