Setting up a blog on your MkDocs site
See the documentation here.
- Enable the plugin by adding
- blog
to theplugins
section of yourmkdocs.yml
file. - Add an
index.md
file to thedocs/blog
folder. - Add a
.authors.yml
file to thedocs/blog
folder to define the authors of the blog. You MUST do this before adding posts, or else the build will fail.
The folder structure for the blog should look like this:
.
├─ docs/
│ └─ blog/
│ ├─ posts/
│ │ └─ post1.md # Sample post
│ └─ index.md
│ └─ .authors.yml
└─ mkdocs.yml
The index.md
file is the landing page for the blog, and future posts will be added to the posts
folder. The .authors.yml
file defines the authors of the blog. See the files in this repository for an example.