ZLua Docs 是 ZLua 的官方文档站点源码,基于 Docusaurus 构建。
npm install
npm start浏览器访问 http://localhost:3000。
npm run build
npm run serve推送到 main 分支后,.github/workflows/deploy.yml 会自动构建并部署到 **https://doc.zlua.cn**。
- 仓库 Settings → Pages → Build and deployment → Source 选择 GitHub Actions
- DNS 为
doc.zlua.cn配置 CNAME 指向<org>.github.io(或按 GitHub Pages 自定义域名说明配置) - 仓库 Settings → Pages 中填写 Custom domain:
doc.zlua.cn并启用 HTTPS
static/CNAME 会在构建时写入站点根目录,供 GitHub Pages 识别自定义域名。
docs/getting-started/— 入门docs/guides/— 使用指南docs/concepts/— 核心概念docs/reference/— API 参考docs/spec/— 规范文档(权威语义)docs/architecture/— 架构与性能docs/community/— 社区与贡献
MIT