How biaochenxuying/blog works
Main Components
• Blog Content & Static Site Generators:
• “blog-gitbook”: Contains GitBook configuration, plugins, markdown pages, and an output “_book” directory. It represents one static site generation engine.
• “blog-vuepress”: Contains a similar blog structure using VuePress that leverages a “.vuepress” folder, custom components (e.g. comment.vue), configuration files, and build scripts.
• Supplementary Content Collections:
• “data-structure-and-algorithms”, “interview”, “resume”: These directories hold articles, tutorials, and resume details used to provide supporting content.
• Technical Project Examples & Prototypes:
• “typescript-in-action”: A multi-stage project (with “stage-0” to “stage-3”), illustrating migration and advanced TypeScript usage. It also includes prototypes and presentations (mindmap, ppt).
• Other subdirectories (e.g., “ts-react-app”, “ts-vue”, “ts-redux”, “ts-express”, “vue-employee-query”, etc.) represent sample applications that demonstrate practical usage of React, Vue, Node.js, Redux, and more.
• Build and Configuration Ecosystem:
• Numerous configuration files (webpack config files, Babel config files, tsconfig.json, .gitignore) indicate that each sample project is independently built and tested. This is an important “layer” in the architecture.
Relationships and Interactions
• Content Generation Pipelines:
• For GitBook: Markdown source files (found under “blog-gitbook/views” and others) are processed along with plugin configurations (under “blog-gitbook/_book/gitbook-plugin-…”) to create a static blog website.
• For VuePress: Source markdown and Vue components in “blog-vuepress/docs” are built using VuePress’s pipeline, with build scripts present in the “builds” folder.
• Build Process & Bundling:
• Content Integration:
Architectural Patterns & Design Principles
• Static Site Architecture: Both GitBook and VuePress follow a static site generation model. Emphasize the build pipeline (markdown → static HTML/CSS/JS).
Relevant Technologies & Frameworks
• Static Site Generators: GitBook, VuePress.
• Build Systems: webpack, Babel.
• Languages/Frameworks: JavaScript, TypeScript, React, Vue, Express.
• Testing & Configuration: jest (in “ts-base”), tsconfig, ESLint, etc.