https://github.com/hirCodd/vuepress-blog

git clone https://github.com/hirCodd/vuepress-blog.git
yarn install //安装依赖
yarn dev //运行

如果您想部署您自己的blog,请fork本项目,然后clone到您本地做以下修改
./docs/.vuepress/config.js

base:<YOUR REPO>

./scripts/deploy-gh.sh

# cd vuepress
# git init
# git add -A
# git commit -m 'deploy'
# git push -f git@github.com:docschina/vuepress.git master:gh-pages


# 确保脚本抛出遇到的错误
# 进入生成的文件夹
cd ..
cd vuepress

# 生成静态文件
yarn build

# 如果是发布到自定义域名
# echo 'www.finen.top' > CNAME
# 初始化git仓库
git init
git add -A
git commit -m 'update'

# 如果发布到 https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master

# 如果发布到 https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
#注意,分支是gh-pages

cd -

运行deploy-gh.sh脚本

sh deploy-gh.sh