Documentation website for using https://ai.xiaoyuan.co.uk in Claude Code, Codex, and OpenCode.
在 Claude Code、Codex 和 OpenCode 中使用 https://ai.xiaoyuan.co.uk 的文档网站。
# Install dependencies / 安装依赖
npm install
# Start development server / 启动开发服务器
npm run docs:dev
# Build for production / 构建生产版本
npm run docs:build
# Preview production build / 预览生产构建
npm run docs:previewThe documentation is built with VitePress.
文档使用 VitePress 构建。
.
├── .vitepress/
│ └── config.js # VitePress configuration / 配置文件
├── guide/
│ ├── getting-started.md # Introduction / 介绍
│ ├── api-key.md # API key guide / API 密钥指南
│ ├── claude-code.md # Claude Code setup / Claude Code 配置
│ ├── codex.md # Codex setup / Codex 配置
│ └── opencode.md # OpenCode setup / OpenCode 配置
├── zh/ # Chinese docs / 中文文档
│ ├── index.md # 首页
│ └── guide/ # 指南
├── public/ # Static assets / 静态资源
└── index.md # Homepage / 首页
- Create a new markdown file in the appropriate directory / 在对应目录创建新的 Markdown 文件
- Add it to the sidebar configuration in
.vitepress/config.js/ 添加到.vitepress/config.js的侧边栏配置中 - Test locally with
npm run docs:dev/ 使用npm run docs:dev本地测试
The site can be deployed to any static hosting service / 站点可以部署到任何静态托管服务:
- GitHub Pages: Use
.github/workflows/deploy.yml - Vercel: Import repository and build with
npm run docs:build - Netlify: Build command:
npm run docs:build, publish directory:.vitepress/dist
MIT License - see LICENSE for details