-
安装mkdocs和主题
pip install mkdocspip install mkdocs-material -
clone
git clone https://github.com/FrameMinitrue/FrameMinitrue.github.io.git(先安装git)
-
在
FrameMinitrue.github.io/docs中编辑文档,按照文件夹分类,markdown文件编写,命名规范为“[条目名].md” -
生成yml navigation(这里写了一个脚本来生成)
python gen_nav.py -
提交
main分支,推荐在pycharm/vscode下直接编辑后,直接update/commit/push完成,熟悉git的可以用命令行 -
提交
gh-pages分支,部署网站在
FrameMinitrue.github.io文件夹下:mkdocs gh-deploy
FrameMinitrue/FrameMinitrue.github.io
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|