用mkdocs写文档#自动更新github-page

https://wuyisheng.github.io/blog

背景是上一篇博客 使用mkdocs,最后提及可以部署github page。这里说明下怎么自动部署。

当然,这篇博客主要的目的还是提供下github page的链接 :)

我是这样做的:

step 1:

sh 复制代码
pip3 install ghp-import
git remote add gh git@github.com:wuyisheng/wuyisheng.github.io.git

step 2: 自动更新

sh 复制代码
#!/bin/sh

mkdocs gh-deploy && \
git checkout gh-pages && \
git push -f gh gh-pages && \
rm -r site/ && \
git checkout master

这样,我在私人的仓库中写好了文档,找个时间,推送到github page就好了。

后面有一些博客就直接更新在github page上了。 :)

相关推荐
胡萝卜术3 小时前
从聊天模型到本地执行助手:Remote MCP 多工具 Agent 实战
面试·架构·github
慕容引刀5 小时前
告别Commit信息纠结:使用Git AI Commit插件实现规范化提交
人工智能·git·github·visual studio code·visual studio
GoGeekBaird14 小时前
我开源了 BeeWeave,给 AI Agent 搭一个越用越懂你的知识创作台
后端·github
fthux16 小时前
GitZip Pro 源码解析:一个 GitHub 文件/文件夹下载扩展是如何工作的(一)整体架构与扩展入口
人工智能·ai·开源·github·open source
第一程序员16 小时前
Rust Agent 子进程执行:Command 之前,先定义输入和超时
python·rust·github
2501_9369603618 小时前
GitHub初步了解
github
wangruofeng19 小时前
11 万 Star 的生成式 AI 入门课,Microsoft 做对了什么
github·aigc·ai编程
IOT那些事儿20 小时前
GitHub Profile 429: Too Many Requests
github·profile·429
峰向AI20 小时前
Agent 看不了视频?这个 7K Star 的开源插件一招搞定
github
程序员吕洞宾20 小时前
开源多维表格SmartTable V1.6:自动化工作流,把重复操作交给系统即可
开源·自动化·github·多维表格·飞书多维表