git clone https://github.com/Yulljie/CattleEatsGrass.git
(有误,等待修正)
-
安装python
-
Arch linux:
pacman -Sy python
-
Debian:
apt install python
-
-
安装material for mkdocs
pip install mkdocs-material
-
使用mkdocs创建新文档
mkdocs new
-
移除文件docs/index.md
rm docs/index.md
-
克隆原markdown文档仓库到docs文件夹
cd docs git clone https://github.com/Yulljie/test.git
-
回到上层目录并创建目标文件夹
cd .. mkdir target
-
构建文档
mkdocs build -t material -d target