静态单页站点,纯 HTML/CSS/JS,无构建步骤。
.
├── index.html # 整站唯一文件(图片以 base64 内嵌)
└── .nojekyll # 关闭 GitHub Pages 的 Jekyll 处理
python -m http.server 8080
# 打开 http://localhost:8080- 在 GitHub 新建空仓库(例如
MTool-Translator-Site),不要勾选 README / .gitignore 初始化。 - 推送本目录:
git remote add origin https://github.com/<你的用户名>/<仓库名>.git
git branch -M main
git push -u origin main- 仓库 Settings → Pages → Build and deployment,Source 选
Deploy from a branch,Branch 选main/ 根目录/ (root),保存。 - 等待 1–2 分钟,访问
https://<你的用户名>.github.io/<仓库名>/。
.nojekyll必须保留,否则 Jekyll 会忽略下划线开头的文件并可能改动输出。
- 页面运行时会调用 GitHub 公开 API 拉取最新 Release 版本号(每 5 分钟一次),未认证限额为 60 次/小时/IP,通常足够;若失败页面会静默降级,不影响展示。
- 字体走 Google Fonts CDN;若面向国内访问,可替换为国内镜像或改为系统字体栈。