基于 VuePress 和 Vdoing 主题构建的个人技术博客。
# clone the project
git clone https://github.com/aliang-codes/my-blogs.git
# enter the project directory
cd my-blogs
# install dependency
npm install # or yarn install
# develop
npm run dev # or yarn dev# 手动部署
npm run deploy github
# 或者推送到 master 分支自动部署(通过 GitHub Actions)
git push origin masternpm run deploy server- 在 GitHub 仓库设置中启用 GitHub Pages
- 选择
gh-pages分支作为源 - 访问
https://aliang-codes.github.io/my-blogs/查看部署结果
本博客使用 Gitalk 作为评论系统。首次使用需要在 GitHub 创建 OAuth App:
- 访问 https://github.com/settings/developers
- 创建新的 OAuth App
- 设置 Homepage URL 和 Authorization callback URL
- 更新
docs/.vuepress/config.ts中的 clientID 和 clientSecret