website/README.md
本目录是历史保留的静态站点源码。
当前线上文档站 https://iflytek.github.io/astron-agent/ 已切换为基于 docs/ 目录的 VitePress 构建产物发布。
index.html:官网首页styles.css:样式文件script.js:轻量交互脚本assets/:站点图片与 Logo仓库通过 .github/workflows/deploy-pages.yml 发布文档站:
main 或 master 分支下的 docs/ 内容更新时自动发布docs/ 目录执行 npm run docs:builddocs/.vitepress/distDOCS_BASE=/astron-agent/,用于适配 GitHub Pages 项目路径首次使用时还需要在 GitHub 仓库设置中确认:
Settings -> PagesBuild and deployment 使用 GitHub Actions仓库根目录已新增 vercel.json,同样以 docs/.vitepress/dist 作为静态输出目录。
Vercel 中建议这样配置:
Othervercel.json当前推荐预览方式是在 docs/ 目录执行:
npm install
npm run docs:dev
然后访问 VitePress 输出的本地地址。