Material for MkDocs主题
安装
pip install mkdocs-material
docker pull squidfunk/mkdocs-material
创建
mkdocs new .
docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material new .
docker run --rm -it -v "%cd%":/docs squidfunk/mkdocs-material new .
配置
theme:
name: material
预览开发
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
docker run --rm -it -p 8000:8000 -v "%cd%":/docs squidfunk/mkdocs-material
当端口被占用,需要修改端口映射