Skip to content

为理想再拼搏几年!

安装配置

Bash
pip install mkdocs
pip install mkdocs-material

改分支

PowerShell
git branch -m master main

部署网站

Python
python -m mkdocs build
# main分支
git add .
git commit -m "update"
git push origin main
# 切换gh-pages分支
git checkout gh-pages
git pull origin gh-pages
# 切换main分支
git checkout main
# 部署
python -m mkdocs gh-deploy

本地测试

Python
python -m mkdocs serve

图床

Bash
https://cdn.jsdelivr.net/gh/wxnlP/pic