# yunaiv/blog architecture

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

- Interactive diagram: https://gitdiagram.com/yunaiv/blog
- Repository: https://github.com/yunaiv/blog

## Overview

##### Project type and purpose
- This is a **personal blog** repository consisting entirely of Markdown articles organized by topic (e.g., Architecture, Docker, Spring‑Boot).
- There is **no application code**—it’s pure content plus a single `_config.yml` (suggesting a static‐site generator configuration).

##### File structure
- Top‑level entries:
- `.gitignore`
- `_config.yml` (static site generator’s config)
- `README.md` (project description and article index)
- Dozens of directories (e.g., `Architecture/`, `Books/`, `Spring-Boot/`) each containing `.md` files (blog posts).
- There are **no** `src/`, `package.json`, `pom.xml` or other code modules—so the “application” is simply a set of static files.

##### Insights from README
- It’s a **“个人博客”** (personal blog) driven by Markdown content.
- The README lists the blog’s purpose, contact information, and an index linking to each folder’s posts.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Author
    Author["Author"]:::user -->|"Push content"| ContentRepo

    %% DevOps Layer
    subgraph "DevOps"
        direction TB
        ContentRepo["Git Repo"]:::devops
        CI["CI/CD Pipeline"]:::devops
    end

    ContentRepo -->|"On push trigger"| CI

    %% Build Layer
    subgraph "Build"
        direction TB
        SSG["Static Site Generator"]:::build
    end

    CI -->|"Build with config and content"| SSG

    %% Production Layer
    subgraph "Production"
        direction TB
        Hosting["Hosting Service"]:::infra
        CDN["CDN / Cache"]:::infra
    end

    SSG -->|"Deploy artifacts"| Hosting
    Hosting -->|"Cache static assets"| CDN

    %% User Layer
    Browser["User Browser"]:::user -->|"HTTP GET"| CDN
    CDN -->|"Cache miss fetch"| Hosting

    %% Content Repository Details
    subgraph "Content Repository Details"
        direction TB
        Gitignore[".gitignore"]:::devops
        Config["_config.yml"]:::build
        Readme["README.md"]:::devops
        Arch["Architecture/"]:::devops
        Dock["Docker/"]:::devops
        SB["Spring-Boot/"]:::devops
        Books["Books/"]:::devops
        DBImg["Database/MyCAT/images/"]:::devops
        DockImg["Docker/images/"]:::devops
        RmqImg["RocketMQ/images/"]:::devops
        Post1["2017_01_01_友链.md"]:::devops
        Post2["2017_01_02_中文详细注释的开源项目.md"]:::devops
    end

    ContentRepo -.-> Gitignore
    ContentRepo -.-> Config
    ContentRepo -.-> Readme
    ContentRepo -.-> Arch
    ContentRepo -.-> Dock
    ContentRepo -.-> SB
    ContentRepo -.-> Books
    ContentRepo -.-> DBImg
    ContentRepo -.-> DockImg
    ContentRepo -.-> RmqImg
    ContentRepo -.-> Post1
    ContentRepo -.-> Post2

    %% Click Events
    click ContentRepo "https://github.com/yunaiv/blog/tree/master//"
    click Gitignore "https://github.com/yunaiv/blog/blob/master//.gitignore"
    click Config "https://github.com/yunaiv/blog/blob/master//_config.yml"
    click Readme "https://github.com/yunaiv/blog/blob/master//README.md"
    click Arch "https://github.com/yunaiv/blog/tree/master//Architecture/"
    click Dock "https://github.com/yunaiv/blog/tree/master//Docker/"
    click SB "https://github.com/yunaiv/blog/tree/master//Spring-Boot/"
    click Books "https://github.com/yunaiv/blog/tree/master//Books/"
    click DBImg "https://github.com/yunaiv/blog/tree/master//Database/MyCAT/images/"
    click DockImg "https://github.com/yunaiv/blog/tree/master//Docker/images/"
    click RmqImg "https://github.com/yunaiv/blog/tree/master//RocketMQ/images/"
    click Post1 "https://github.com/yunaiv/blog/blob/master//2017_01_01_友链.md"
    click Post2 "https://github.com/yunaiv/blog/blob/master//2017_01_02_中文详细注释的开源项目.md"

    %% Styles
    classDef devops fill:#ADD8E6,stroke:#333,stroke-width:1px;
    classDef build fill:#90EE90,stroke:#333,stroke-width:1px;
    classDef infra fill:#FFA500,stroke:#333,stroke-width:1px;
    classDef user fill:#D3D3D3,stroke:#333,stroke-width:1px;
```
