-
-
Notifications
You must be signed in to change notification settings - Fork 205
docs: add documentation for markdown.crossCompilerCache option #2979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…的文档。 **添加的内容包括:** 1. **英文文档** (`website/docs/en/api/config/config-build.mdx:270-287`) 2. **中文文档** (`website/docs/zh/api/config/config-build.mdx:272-289`) **文档说明:** - 类型:`boolean` - 默认值:`true` - 功能:在 `rspress build` 时启用跨编译器缓存,通过在多个编译器(web 和 node)之间缓存 MDX 解析结果来加速生产环境构建 - 效果:构建时间减少约 10% - 限制:仅在生产环境构建时生效 - 灵感来源:Docusaurus
✅ Deploy Preview for rspress-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds documentation for the markdown.crossCompilerCache configuration option in both Chinese and English versions of the Rspress documentation. The option enables cross-compiler caching during production builds to improve build performance.
- Adds comprehensive documentation for the
crossCompilerCacheoption including type definition, default value, description, and usage examples - Documents that the feature speeds up production builds by approximately 10% by caching MDX parsing results across web and node compilers
- Notes that the feature is inspired by Docusaurus and only takes effect in production builds
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/zh/api/config/config-build.mdx | Adds Chinese documentation for the markdown.crossCompilerCache configuration option |
| website/docs/en/api/config/config-build.mdx | Adds English documentation for the markdown.crossCompilerCache configuration option |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff AnalysisFound 3 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 nodePath:
📦 Download Diff Report: node Bundle Diff 📁 node_mdPath:
📦 Download Diff Report: node_md Bundle Diff 📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
Summary
Add documentation for the
markdown.crossCompilerCacheconfiguration option in both English and Chinese.Related Issue
#2256
Checklist
Changes Made
Added documentation for
markdown.crossCompilerCachein:website/docs/en/api/config/config-build.mdxwebsite/docs/zh/api/config/config-build.mdxDocumentation Details
The
crossCompilerCacheoption was introduced in PR #2256 but was not documented at the time. This PR adds the missing documentation with:booleantrueThis PR was written using Vibe Kanban