dockerized mkdocsInstallation
You can skip this step.
Creating a new Project
dockerized mkdocs new my-projectServing
The mkdocs serve command needs some adjustment to work with dockerized:
dockerized -p 8000 mkdocs serve --dev-addr=0.0.0.0:8000-p 8000— Tells dockerized to forward port 8000 from the host to the container.--dev-addr=0.0.0.0:8000— Tells mkdocs to listen on all interfaces on port 8000.
You can now access the live site at http://localhost:8000.
See:
By default, the following plugins are installed:
mkdocs-materialmkdocs-material-extensions
To install more plugins:
-
Add their pip package name to the
MKDOCS_PACKAGESenvironment variable.# dockerized.env MKDOCS_PACKAGES="${MKDOCS_PACKAGES} mdx-truly-sane-lists"
Rebuild mkdocs:
dockerized --build mkdocs
-
Follow the other instructions in the plugin's documentation.