Installation¶
MaterialX for MkDocs is a powerful documentation framework:
- Born for documents, yet beyond documents
- Accessible to everyone, extremely easy to use
- Modern, lightweight, customizable, responsive
You can install it in the following ways.
with pip¶
MaterialX for MkDocs is published as a Python package and can be installed with pip, ideally by using a virtual environment.
Open up a terminal and install MaterialX for MkDocs with:
This will automatically install compatible versions of all dependencies: MkDocs, Markdown, Pygments and Python Markdown Extensions. MaterialX for MkDocs always strives to support the latest versions, so there's no need to install those packages separately.
with docker¶
The official Docker image is a great way to get up and running in a few minutes, as it comes with all dependencies pre-installed. Open up a terminal and pull the image with:
The following plugins are bundled with the Docker image:
Add more plugins¶
Material for MkDocs only bundles selected plugins in order to keep the size of the official image small. If the plugin you want to use is not included, you can add them easily. Create a Dockerfile and extend the official image:
FROM squidfunk/mkdocs-material:9.7.1
RUN pip install mkdocs-materialx
RUN pip install mkdocs-glightbox
For MaterialX¶
MaterialX does not yet provide an official Docker image, as a temporary solution, you can derive a custom image from mkdocs-material.
This approach reuses the official
mkdocs-materialimage and installs MaterialX on top of it.
Create a Dockerfile¶
FROM squidfunk/mkdocs-material:9.7.1
RUN pip install mkdocs-materialx
# Install additional plugins if needed
# RUN pip install mkdocs-glightbox ...
Build the image¶
Run the container¶
Info
This is a temporary workaround, an official MaterialX Docker image will be provided in the future.
with git¶
You can also clone the source code from a GitHub repo via git clone and install it locally:
Next, install it with the following command: