Setting up a blog on your MkDocs site
See the documentation here.
- Enable the plugin by adding
- blogto thepluginssection of yourmkdocs.ymlfile. - Add an
index.mdfile to thedocs/blogfolder. - Add a
.authors.ymlfile to thedocs/blogfolder 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.