使用docker
docker pull squidfunk/mkdocs-material
Unix, Powershell
docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material new .
Windows
docker run --rm -it -v "%cd%":/docs squidfunk/mkdocs-material new .
theme:
name: material
当端口被占用,需要修改端口映射
Unix, Powershell
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
Windows
docker run --rm -it -p 8000:8000 -v "%cd%":/docs squidfunk/mkdocs-material