mkdocs + github

sudo pip install mkdocs
git clone git@github.com:wxmustard/note2.git
cd note2
mkdocs new .
# 自动生成 docs(文档主目录)  mkdocs.yml(配置文件)
# docs
#├── help
#│   └── start.md
#├── index.md
#└── python
#    └── Chapter7.md
vim mkdocs.yml
site_name: Mustard's docs
theme:
    name: 'material'
nav:
    - 'help':
        - '快速开始': 'help/start.md'
    - 'python notes':
        - '数据结构': 'python/Chapter7.md'

- 本地浏览(/调试)
​```bash
mkdocs serve
# 打开浏览器输入http://127.0.0.1:8000
mkdocs gh-deploy --clean
# --clean 清理不存在的文件
./push docs
# 访问: https://wxmustard.github.io/note2/
# https://(github用户名).github.io/(远程仓库名)/