- 打开 GitHub Desktop
- 点击 "File" → "New repository" 或者 Ctrl+N (Windows) / Cmd+N (Mac)
- 填写信息:
- Name:
python-interactive-tutorial - Description:
Python交互式编程教程 - 基于Web的交互式Python学习平台 - Local path: 选择
/Users/adamhu(当前项目的父目录) - ✅ 勾选 "Initialize this repository with a README"
- ✅ 选择 "Publish to GitHub.com"
- ✅ 设为 Public repository
- Name:
- 项目创建后,GitHub Desktop会提示发布到GitHub
- 点击 "Publish repository"
- 确保 "Keep this code private" 未勾选(设为公开)
- 点击 "Publish Repository"
- 发布完成后,点击GitHub Desktop中的 "View on GitHub"
- 在GitHub仓库页面,点击 "Settings" 标签
- 滚动到 "Pages" 部分
- Source 选择 "Deploy from a branch"
- Branch 选择 "main"
- 文件夹选择 "/ (root)"
- 点击 "Save"
等待几分钟后,网站将在以下地址可用:
https://[your-username].github.io/python-interactive-tutorial