Mkdocs & Material Mkdocs extensions
Here some notes about the material Mkdocs extensions more information in the documentation
Icons¶
To add custom Icons we need to use Icons+Emojis We star with the configuration that give use access to some basic icons and emojies, later we explore the addition of customized icons.
Configuration¶
add the following lines to mkdocs.yml
emojis ¶
it is recommended to use the shortcodes at Emojipedia we have the example of
Using icons ¶
We can use icons too, in some case we need to make some extra modifications to the mkdocs.yml
mkdocs.yml
we create a new folder called overrides
and inside other call .icons
and inside we put the svg of the icons.
Now to call that icons we replace the /
of the path for -
like
We can find more icons here materialdesignicons
Color can be added to the icons, we will need to add some CSS rules to later reference next to the icon, like this
colors for icons
.purple: #6745c2 .dark-purple: #6745c2 .royal-blue: #000062 .orange: #E66C10 .light-green: #629749 .dark-green: #003d00 .green: #32681
Admonitions¶
These are basically call-outs.
Configuration¶
They are enabled by putting !!!
later a key word
and bellow indented the content, like this
Note
this is an admonition
We can modify the name by putting a different key word ( see admonitions documentation)
or by adding the title in "
.
This is the title
this is an admonition
we can make a dropdown close by default
This is a dropdown admonition
this is an admonition
and open by adding "+"
This is a dropdown call-out
this is an admonition
Here some example of other admonitions
Warning
This is a warning