Calmcode - mkdocs: material mkdocs

Material Mkdocs

1 2 3 4 5 6 7 8 9

We first need to install new themes.

pip install mkdocs-material

If you're using a modern version of mkdocs then you need the following settings to achieve the same result:

site_name: My Docs
theme:
  name: material
  palette:
    primary: purple
    accent: cyan
  font:
    text: Ubuntu
  icon:
    logo: material/cloud

This is different than the file in the video because mkdocs-material has gone through an update. The mkdocs.yml file in this video contains the following code:

site_name: My Docs
theme:
  name: material
  palette:
    primary: purple
    accent: cyan
  font:
    text: Ubuntu
  logo:
    icon: cloud

Note that the color settings, font settings and icon settings can be reviewed in the documentation found here.