本项目包含一个静态统计页面,用于浏览题目与技巧的对应关系。
https://easyit-org.github.io/leetcode-summary/
python3 server.py打开 http://127.0.0.1:8000。
./scripts/build_pages.sh这会生成/更新 docs/ 目录(包含 index.html、app.js、styles.css、index.json)。
- 将仓库推送到 GitHub。
- 打开 GitHub 仓库 Settings → Pages。
- Source 选择 Deploy from a branch。
- Branch 选择
main(或你的默认分支),目录选择/docs,保存。
随后访问:
https://easyit-org.github.io/leetcode-summary/
- 运行更新脚本(如
scripts/update_index.py)生成新的index.json。 - 运行
./scripts/build_pages.sh同步到docs/。 - 提交并推送到 GitHub。