vuepress 搭建个人博客

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
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值