https://wuyisheng.github.io/blog
背景是上一篇博客 使用mkdocs,最后提及可以部署github page。這里說明下怎么自動部署。
當然,這篇博客主要的目的還是提供下github page的鏈接 :)
我是這樣做的:
step 1:
pip3 install ghp-import
git remote add gh git@github.com:wuyisheng/wuyisheng.github.io.git
step 2: 自動更新
#!/bin/shmkdocs gh-deploy && \
git checkout gh-pages && \
git push -f gh gh-pages && \
rm -r site/ && \
git checkout master
這樣,我在私人的倉庫中寫好了文檔,找個時間,推送到github page就好了。
后面有一些博客就直接更新在github page上了。 :)