MkDocs Navi Plugin
2025-01-08
The aptly-named awesome-pages plulgin adds automatic and specific dir-based navi, without polluting mkdocs.yml
. For detailed usage instructions see mkdocs-aweome-pages-plugin.
In the project venv:
pip install mkdocs-awesome-pages-plugin
Create a .pages
file in a dir:
nav:
- index.md
- first-sub-dir
- first-page.md
- ... | intro-*.md # all starting with "intro"
- ... # all remaining entries
- Title Text: some-page.md # Provide a title
- Link Title: https://some-site.com
- last-page.md
Lines beginning with ...
are called Rest Filters
.
A rest filter applies to items in the containing folder.
nav:
- index.md
- section 1:
- page1.md
- page2.md
- Section 2:
- another-page.md