Contribution guidelines
I've found a bug and checked that ...
Description
Let's say we have a following structure: docs/projects/project-name/docs. In docs folder we only have an index.md file. If we enable navigation.indexes it works as expected, but we still see an arrow on the right side, which indicates there are some pages within given section, which is not true - it's just empty.
Expected behaviour
The expected behaviour is already implemented in the mkdocs-section-index plugin - in such scenario there's no arrow on the right side.

Actual behaviour

Steps to reproduce
- Create
docs/projects/project-name/docs dirs.
- Create only
index.md file in the last dir.
- Enable
navigation.indexes.
- Run
mkdocs serve.
Package versions
- Python: 3.8.12
- MkDocs: 1.2.2
- Material: 7.3.1
Configuration
site_name: Whatever
theme:
name: material
features:
- navigation.tabs
- navigation.top
- navigation.indexes
System information
- Operating system: macOS
- Browser: Chrome
Contribution guidelines
I've found a bug and checked that ...
mkdocsorreadthedocsthemescustom_dir,extra_javascriptandextra_cssDescription
Let's say we have a following structure:
docs/projects/project-name/docs. Indocsfolder we only have anindex.mdfile. If we enablenavigation.indexesit works as expected, but we still see an arrow on the right side, which indicates there are some pages within given section, which is not true - it's just empty.Expected behaviour
The expected behaviour is already implemented in the

mkdocs-section-indexplugin - in such scenario there's no arrow on the right side.Actual behaviour
Steps to reproduce
docs/projects/project-name/docsdirs.index.mdfile in the last dir.navigation.indexes.mkdocs serve.Package versions
Configuration
System information