# datawhalechina/easy-vibe architecture

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

- Interactive diagram: https://gitdiagram.com/datawhalechina/easy-vibe
- Repository: https://github.com/datawhalechina/easy-vibe

## Overview

This repository is a multilingual, static documentation site built with VitePress. Its core purpose is to deliver a structured learning curriculum about AI-assisted development, from beginner paths to advanced agent workflows, with a large appendix of interactive technical explainers.

1. Content architecture
The content is organized as a learning journey rather than a product app: Stage 0–3, plus an Appendix knowledge base and Vibe Stories. Each stage is repeated across locale folders such as `docs/zh-cn`, `docs/en`, `docs/ja-jp`, etc., with matching page structures so the same curriculum can be served in 10 languages.

2. Source-of-truth content layer
Most authored content lives in Markdown under `docs/<locale>/...`. This is the primary content boundary: curriculum pages, guides, stage pages, and appendix articles are all document-driven. The Chinese tree appears to be the most complete source set, while other locales mirror it for translation.

3. Presentation and routing layer
`docs/.vitepress/config.mjs` and `docs/.vitepress/theme` define the site shell, navigation, page layout, and locale behavior. This is the main application runtime: VitePress turns Markdown into a navigable site, and the custom theme controls how chapters, cards, progress indicators, and home sections are rendered.

4. Interactive UI subsystem
The site is not plain documentation; it embeds many Vue components under `docs/.vitepress/theme/components`. These components implement the visual learning experience: demos, flow maps, step bars, story cards, reading progress, appendix visualizers, and chapter intros. They are the key boundary between static content and interactive explanation.

5. Appendix knowledge base
The appendix is a major subsystem with many topic families, each backed by specialized Vue demos and Markdown pages. It covers computer fundamentals, frontend/backend concepts, infrastructure, AI/LLM topics, deployment, queues, auth, databases, and more. Architecturally, this acts like a reusable concept library that stage pages link into.

6. Shared theme data and localization
Theme-level data lives in `docs/.vitepress/theme/data` and `docs/.vitepress/theme/locales`. These files feed the homepage, related-article mapping, chapter labels, and locale-specific UI text. The structure separates content from presentation so the same component set can render different languages cleanly.

7. Assets and static public files
Branding and media live in `assets/`, while site-level static outputs and crawler-facing files live in `docs/public`. This includes `robots.txt`, `sitemap.xml`, `llms.txt`, and styling for deployed docs. These are served as static artifacts rather than generated at runtime.

8. Build and content-generation tooling
`scripts/build.mjs` and `scripts/generate-sitemap.mjs` indicate a build step that packages the docs site and generates discoverability metadata. The repo also includes a test for `readingBookmark`, showing that some theme behavior is validated like application logic, not just treated as content.

9. Deployment boundary
The repo is set up for static deployment with multiple targets: GitHub Actions (`.github/workflows/deploy.yml`), Vercel (`vercel.json`), Docker (`Dockerfile`), and an Nginx config. The runtime artifact is a compiled static site, so the deployed surface is essentially CDN/static hosting rather than an application server.

10. Contributor and AI-tool support
`AGENTS.md`, `CLAUDE.md`, and `llms.txt` suggest the repository is optimized for both humans and AI coding assistants. These files help external tools understand the repo layout, which is especially important given the large multilingual content surface.

11. Documentation of the docs themselves
`docs-readme/` contains translated README variants, separate from the site content under `docs/`. This is a small but important boundary: project-level repository description is maintained independently from the learning-site content.

12. Overall system flow
The main flow is: Markdown curriculum content plus Vue demo components are assembled by VitePress into localized static pages, styled and enriched by the custom theme, then built and deployed as a static site through CI/CD. Users browse by stage, appendix topic, or story path, while the site’s internal data structures drive navigation and related-content discovery.

Main entry points: [`docs/.vitepress/theme/index.js`](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/index.js) (Theme shell), [`docs/index.md`](https://github.com/datawhalechina/easy-vibe/blob/main/docs/index.md) (Curriculum content), [`docs/.vitepress/theme/components`](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components) (UI components), [`scripts/build.mjs`](https://github.com/datawhalechina/easy-vibe/blob/main/scripts/build.mjs) (Build scripts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Repository"]
  node_root["easy-vibe<br/>static docs repo"]
  node_assistant_docs["Assistant docs<br/>repo guidance<br/>[AGENTS.md]"]
  node_readme_locales["Docs readmes<br/>project docs<br/>[README.md]"]
end

subgraph group_docs["Docs site"]
  node_source_content["Curriculum content<br/>markdown corpus<br/>[index.md]"]
  node_stage_paths["Stage journey<br/>curriculum structure<br/>[index.md]"]
  node_appendix_kb["Appendix library<br/>concept library<br/>[index.md]"]
  node_vibe_stories["Vibe stories<br/>story content<br/>[story-1.md]"]
  node_locale_mirrors["Locale mirrors<br/>translations<br/>[index.md]"]
  node_site_config["Site config<br/>vitepress config<br/>[config.mjs]"]
  node_theme_shell["Theme shell<br/>vitepress theme<br/>[index.js]"]
  node_layout_shell["Layout shell<br/>vue layout<br/>[Layout.vue]"]
  node_ui_components["UI components<br/>vue components<br/>[components]"]
  node_appendix_demos["Appendix demos<br/>interactive demos<br/>[appendix]"]
  node_home_modules["Home modules<br/>homepage sections<br/>[home]"]
  node_theme_data["Theme data<br/>site data<br/>[relatedArticles.js]"]
  node_theme_locales["UI locales<br/>locale text<br/>[locales]"]
  node_theme_utils["Theme utils<br/>client utilities<br/>[readingBookmark.js]"]
end

subgraph group_ops["Operations"]
  node_public_assets["Public assets<br/>static files<br/>[llms.txt]"]
  node_build_scripts["Build scripts<br/>automation<br/>[build.mjs]"]
  node_deploy_targets["Deploy targets<br/>static hosting<br/>[deploy.yml]"]
end

node_root -->|"contains"| node_source_content
node_root -->|"configures"| node_site_config
node_root -->|"automates"| node_build_scripts
node_root -->|"ships to"| node_deploy_targets
node_root -->|"documents"| node_assistant_docs
node_root -->|"describes"| node_readme_locales
node_source_content -->|"organizes"| node_stage_paths
node_source_content -->|"links to"| node_appendix_kb
node_source_content -->|"includes"| node_vibe_stories
node_source_content -->|"mirrors"| node_locale_mirrors
node_site_config -->|"loads"| node_theme_shell
node_theme_shell -->|"renders"| node_layout_shell
node_theme_shell -->|"composes"| node_ui_components
node_theme_shell -->|"assembles"| node_home_modules
node_theme_shell -->|"reads"| node_theme_data
node_theme_shell -->|"localizes"| node_theme_locales
node_theme_shell -->|"uses"| node_theme_utils
node_ui_components -->|"specializes"| node_appendix_demos
node_theme_data -->|"drives"| node_ui_components
node_locale_mirrors -->|"feeds"| node_theme_locales
node_build_scripts -->|"emits"| node_public_assets
node_deploy_targets -->|"serves"| node_public_assets
node_theme_utils -->|"validated by"| node_build_scripts

click node_source_content "https://github.com/datawhalechina/easy-vibe/blob/main/docs/index.md"
click node_stage_paths "https://github.com/datawhalechina/easy-vibe/blob/main/docs/zh-cn/stage-1/learning-map/index.md"
click node_appendix_kb "https://github.com/datawhalechina/easy-vibe/blob/main/docs/zh-cn/appendix/index.md"
click node_vibe_stories "https://github.com/datawhalechina/easy-vibe/blob/main/docs/en/vibe-stories/story-1.md"
click node_locale_mirrors "https://github.com/datawhalechina/easy-vibe/blob/main/docs/en/index.md"
click node_site_config "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/config.mjs"
click node_theme_shell "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/index.js"
click node_layout_shell "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/Layout.vue"
click node_ui_components "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components"
click node_appendix_demos "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components/appendix"
click node_home_modules "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components/home"
click node_theme_data "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/data/relatedArticles.js"
click node_theme_locales "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/locales"
click node_theme_utils "https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/utils/readingBookmark.js"
click node_public_assets "https://github.com/datawhalechina/easy-vibe/blob/main/docs/public/llms.txt"
click node_build_scripts "https://github.com/datawhalechina/easy-vibe/blob/main/scripts/build.mjs"
click node_deploy_targets "https://github.com/datawhalechina/easy-vibe/blob/main/.github/workflows/deploy.yml"
click node_assistant_docs "https://github.com/datawhalechina/easy-vibe/blob/main/AGENTS.md"
click node_readme_locales "https://github.com/datawhalechina/easy-vibe/blob/main/docs-readme/en-US/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_root,node_assistant_docs,node_readme_locales toneBlue
class node_source_content,node_stage_paths,node_appendix_kb,node_vibe_stories,node_locale_mirrors,node_site_config,node_theme_shell,node_layout_shell,node_ui_components,node_appendix_demos,node_home_modules,node_theme_data,node_theme_locales,node_theme_utils toneAmber
class node_public_assets,node_build_scripts,node_deploy_targets toneMint
```

## Components

### Repository

Top-level repo boundaries, guidance, and project docs.

- **easy-vibe**: static docs repo · Multilingual curriculum site for AI-assisted development.
- [Assistant docs](https://github.com/datawhalechina/easy-vibe/blob/main/AGENTS.md): repo guidance · Machine-readable guidance for contributors and coding assistants. · `AGENTS.md`
- [Docs readmes](https://github.com/datawhalechina/easy-vibe/blob/main/docs-readme/en-US/README.md): project docs · Translated repository-level README variants maintained outside the site content tree. · `docs-readme/en-US/README.md`

### Docs site

VitePress content, theme, localization, and interactive learning pages.

- [Curriculum content](https://github.com/datawhalechina/easy-vibe/blob/main/docs/index.md): markdown corpus · Primary learning pages and chapters authored in Markdown. · `docs/index.md`
- [Stage journey](https://github.com/datawhalechina/easy-vibe/blob/main/docs/zh-cn/stage-1/learning-map/index.md): curriculum structure · Stage 0–3 learning path with chapter-level navigation. · `docs/zh-cn/stage-1/learning-map/index.md`
- [Appendix library](https://github.com/datawhalechina/easy-vibe/blob/main/docs/zh-cn/appendix/index.md): concept library · Reusable technical explainers and reference topics. · `docs/zh-cn/appendix/index.md`
- [Vibe stories](https://github.com/datawhalechina/easy-vibe/blob/main/docs/en/vibe-stories/story-1.md): story content · Narrative examples and showcase stories for the curriculum. · `docs/en/vibe-stories/story-1.md`
- [Locale mirrors](https://github.com/datawhalechina/easy-vibe/blob/main/docs/en/index.md): translations · Parallel locale trees that mirror the curriculum structure. · `docs/en/index.md`
- [Site config](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/config.mjs): vitepress config · Site routing, locales, and build configuration. · `docs/.vitepress/config.mjs`
- [Theme shell](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/index.js): vitepress theme · Custom rendering layer for the docs site. · `docs/.vitepress/theme/index.js`
- [Layout shell](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/Layout.vue): vue layout · Global page frame and composition entry point. · `docs/.vitepress/theme/Layout.vue`
- [UI components](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components): vue components · Reusable learning components and page widgets. · `docs/.vitepress/theme/components`
- [Appendix demos](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components/appendix): interactive demos · Topic-specific visual explainers used across appendix pages. · `docs/.vitepress/theme/components/appendix`
- [Home modules](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/components/home): homepage sections · Localized landing-page sections and stage entry cards. · `docs/.vitepress/theme/components/home`
- [Theme data](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/data/relatedArticles.js): site data · Shared content mappings and homepage data sources. · `docs/.vitepress/theme/data/relatedArticles.js`
- [UI locales](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/locales): locale text · Localized labels and chapter text for the theme. · `docs/.vitepress/theme/locales`
- [Theme utils](https://github.com/datawhalechina/easy-vibe/blob/main/docs/.vitepress/theme/utils/readingBookmark.js): client utilities · Client-side helpers and behavior validation. · `docs/.vitepress/theme/utils/readingBookmark.js`

### Operations

Build, static assets, and deployment surfaces.

- [Public assets](https://github.com/datawhalechina/easy-vibe/blob/main/docs/public/llms.txt): static files · Crawler-facing files, styles, and published static assets. · `docs/public/llms.txt`
- [Build scripts](https://github.com/datawhalechina/easy-vibe/blob/main/scripts/build.mjs): automation · Repository scripts for building and site metadata generation. · `scripts/build.mjs`
- [Deploy targets](https://github.com/datawhalechina/easy-vibe/blob/main/.github/workflows/deploy.yml): static hosting · CI/CD and host configurations for static deployment. · `.github/workflows/deploy.yml`

## Connections

- easy-vibe → Curriculum content: contains · Repository centers on authored curriculum content.
- easy-vibe → Site config: configures · Top-level site runtime is defined by VitePress config.
- easy-vibe → Build scripts: automates · Build and metadata scripts package the site.
- easy-vibe → Deploy targets: ships to · Static outputs are deployed through multiple targets.
- easy-vibe → Assistant docs: documents · Repo guidance helps contributors and tools.
- easy-vibe → Docs readmes: describes · Repository-level docs are maintained separately from site content.
- Curriculum content → Stage journey: organizes · Main curriculum is structured as stages.
- Curriculum content → Appendix library: links to · Lessons reference the appendix concept library.
- Curriculum content → Vibe stories: includes · Narrative examples live alongside the curriculum.
- Curriculum content → Locale mirrors: mirrors · Primary content is duplicated across locale trees.
- Site config → Theme shell: loads · VitePress config wires the custom theme.
- Theme shell → Layout shell: renders · Layout is the outer shell of the site.
- Theme shell → UI components: composes · Interactive components power rich pages.
- Theme shell → Home modules: assembles · Homepage sections are built from theme modules.
- Theme shell → Theme data: reads · Shared data feeds navigation and related content.
- Theme shell → UI locales: localizes · Theme strings vary by language.
- Theme shell → Theme utils: uses · Theme runtime uses helper logic.
- UI components → Appendix demos: specializes · Appendix families use dedicated interactive demos.
- Theme data → UI components: drives · Shared mappings inform component behavior.
- Locale mirrors → UI locales: feeds · Content locale trees align with UI locale text.
- Build scripts → Public assets: emits · Build process prepares static assets and crawler files.
- Deploy targets → Public assets: serves · Deployment exposes the generated static surface.
- Theme utils → Build scripts: validated by · Utility behavior is covered by repository checks.
