Installation¶
MaterialX 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 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 with:
This will automatically install compatible versions of all dependencies: MkDocs, Markdown, Pygments and Python Markdown Extensions. MaterialX always strives to support the latest versions, so there's no need to install those packages separately.
with docker¶
official docker image¶
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:
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:
build the image¶
run the container¶
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: