Appearance
文档
¥Docs
Rolldown 的文档使用 VitePress。你可以在 docs 中找到该网站的源代码。查看 Markdown 扩展指南 以了解 VitePress 的功能。
¥Rolldown is documented using VitePress. You can find the source code for the site in docs. Check out the Markdown Extensions Guide to learn about VitePress features.
要为文档做出贡献,你可以启动在项目根目录上运行的 docs dev 服务器:
¥To contribute to the documentation, you can start the docs dev server running on the project root:
sh
pnpm run docs由于 pnpm docs 命令用于在 npm 中打开模块引入,你可以使用上面的命令。
¥Since the pnpm docs command is used for opening the module introduction in npm, you may use the command above.
然后,你可以编辑 Markdown 文件并立即查看更改。文档结构在 docs/.vitepress/config.ts 处配置(参见 站点配置参考)。
¥You can then edit the markdown files and see your changes instantly. The docs structure is configured at docs/.vitepress/config.ts (see the Site Config Reference).
如果你想查看已构建的站点,请在项目根目录中运行:
¥If you'd like to review the built site, run in the project root:
sh
pnpm docs:build
pnpm docs:preview如果你不修改文档的构建设置,则贡献时无需执行此步骤。
¥This step isn't needed when contributing if you aren't modifying the docs build setup.