If nav is not set in mkdocs.yml, navigation is created automatically. The string is determined by the following priority
- the title of each page (h1 string starting with #)
- the file name
I would like to display the h1 string in the navigation even if the template contains it, but it does not work. I use mkdocs-macros-plugin as a template. Any suggestions on what to do?
Reproduction example
[packages]
mkdocs = "==1.1"
mkdocs-macros-plugin = "==0.7.0"
docs/
└── index.md
templates/
└── template.md
mkdocs.yml
mkdocs.yml
plugins:
- search
- macros:
include_dir: templates
templates/template.md
# AAAA
~~~
docs/index.md
{% include "template.md" %}
The navigation obtained in this setup is
index
I want the following navigation.
AAAA