获取并启动
需要 Node.js 22 或更新版本。从仓库根目录启动;网站脚本无需安装第三方 npm 依赖。
git clone https://github.com/Aha-xiaoQ/Aha-xiaoQ.github.io.git
cd Aha-xiaoQ.github.io
npm run dev访问页面
在浏览器打开 http://127.0.0.1:4173/。开发栏目为 /notes/,实验室为 /notes/lab/。请使用本地 HTTP 服务,不要直接双击网站的 index.html。
端口占用时运行 npm run dev -- --port 4174。Windows 也可使用根目录的 start-dev.cmd。
选择下一步
日常预览使用 npm run dev;修改后用 npm run platform:build 重新生成页面;提交前运行 npm run platform:verify。内容编辑、接入项目和发布细节分别见对应指南。
继续阅读
内容编辑构建与发布