This example contains MkDocs configured with more plugins for extra formatting options.
See mkdocs.yml
for configuration details.
This is complete list of extensions supported by material theme.
There are several markdown extensions enabled to improve rendering of html:
codehilite
for code highlighting (has depedency onpygments
library, seerequirements.txt
).admonition
for block-styled content, e.g. hints and warnings.meta
for extending the content with metadata for more control over content.toc
for table of contents and permalinks.pymdownx.details
is extension from PyMdown extensions to render collapsible blocks. See the whole list of extensions for even more possibilities, e.g. rendering mathematical equations.
markdown_extensions:
- codehilite
- admonition
- meta
- toc:
permalink: True
- pymdownx.details
plugins:
- search:
lang: en
Material theme defines several colors you can use in .yml
file:
theme:
palette:
primary: 'deep purple'
accent: 'deep purple'
img/favicon.ico
extra:
social:
- type: 'github'
link: 'https://github.com/squidfunk'
- type: 'twitter'
link: 'https://twitter.com/squidfunk'
- type: 'linkedin'
link: 'https://www.linkedin.com/in/squidfunk'
Type make serve
to build and preview the documetation. Navigate to http://127.0.0.1:8000/ to open the site.
Type make doc
. This creates site/
directory with all html files and static content.
Grap site/
directory and copy it to your favorite server, cloud or use GitHub Pages.
Get into more details on official docs.