About Material for MkDocs¶
Material for MkDocs is a documentation framework based on MkDocs.
It has a better looking interface than plain MkDocs and offers various features to help organize your documentation with Markdown.
How and why do we use Material for MkDocs¶
We use Material for MkDocs to generate the documentation website.
Install Material for MkDocs¶
Install Material for MkDocs with the following commands.
In a terminal, execute the following command(s). | |
---|---|
In a terminal, execute the following command(s). | |
---|---|
In a terminal, execute the following command(s). | |
---|---|
You can use the dev container to develop within. You can read more here.
Once in the dev container you can run the following commands:
In a terminal, execute the following command(s). | |
---|---|
Configuration¶
The configuration for Material for MkDocs is located in the mkdocs.yml
configuration file.
Common tasks¶
Start the website for development¶
In a terminal, execute the following command(s). | |
---|---|
Build the website for production¶
In a terminal, execute the following command(s). | |
---|---|
Add a new page¶
Add a new page by creating a new file/directory in the docs
directory. All pages must have a .md
file extension.
Add a new navigation entry¶
Add a new entry to the navigation in the mkdocs.yml
file under the nav
property.
Add a new glossary entry¶
Add a new entry to the glossary in the docs/glossary.md
file.
The format must be as follow.
Each word that Material for MkDocs will find in the documentation will have a tooltip with the definition for the word.
Resources and alternatives¶
These resources and alternatives are related to the current item (in alphabetical order).
- Docsify
- Docusaurus
- GitBook
- Hugo
- Material for MkDocs - Icons, Emojis
- PyMdown Extensions Documentation - Keys
- VuePress