How datawhalechina/easy-vibe works
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: index.js Theme shell · index.md Curriculum content · components UI components · build.mjs Build scripts
Components 20
Repository
Top-level repo boundaries, guidance, and project docs.
- easy-vibe · Multilingual curriculum site for AI-assisted development.
- Assistant docs · Machine-readable guidance for contributors and coding assistants.
AGENTS.md - Docs readmes · 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 · Primary learning pages and chapters authored in Markdown.
docs/index.md - Stage journey · Stage 0–3 learning path with chapter-level navigation.
docs/zh-cn/stage-1/learning-map/index.md - Appendix library · Reusable technical explainers and reference topics.
docs/zh-cn/appendix/index.md - Vibe stories · Narrative examples and showcase stories for the curriculum.
docs/en/vibe-stories/story-1.md - Locale mirrors · Parallel locale trees that mirror the curriculum structure.
docs/en/index.md - Site config · Site routing, locales, and build configuration.
docs/.vitepress/config.mjs - Theme shell · Custom rendering layer for the docs site.
docs/.vitepress/theme/index.js - Layout shell · Global page frame and composition entry point.
docs/.vitepress/theme/Layout.vue - UI components · Reusable learning components and page widgets.
docs/.vitepress/theme/components - Appendix demos · Topic-specific visual explainers used across appendix pages.
docs/.vitepress/theme/components/appendix - Home modules · Localized landing-page sections and stage entry cards.
docs/.vitepress/theme/components/home - Theme data · Shared content mappings and homepage data sources.
docs/.vitepress/theme/data/relatedArticles.js - UI locales · Localized labels and chapter text for the theme.
docs/.vitepress/theme/locales - Theme utils · Client-side helpers and behavior validation.
docs/.vitepress/theme/utils/readingBookmark.js
Operations
Build, static assets, and deployment surfaces.
- Public assets · Crawler-facing files, styles, and published static assets.
docs/public/llms.txt - Build scripts · Repository scripts for building and site metadata generation.
scripts/build.mjs - Deploy targets · CI/CD and host configurations for static deployment.
.github/workflows/deploy.yml
Connections 23
- 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.