Build a blog with Material for MkDocs
Source: https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/#blog-only
The minimal required directory structure:
.
├─ docs/
│ └─ posts/xxx.md
└─ mkdocs.yml
.authors.yml
is optionalindex.md
will be created automatically
The mkdocs.yml
:
theme:
name: material
language: en
plugins:
- blog:
blog_dir: .
Install required packages:
pip install mkdocs mkdocs-material
Preview the site:
mkdocs serve