The toctree in the index.html page is one level deep when I expect it to be two levels deep.
The project directory structure is like this:
index.md
dlg.md
dlg/about/index.md
dlg/...
The dlg.md page looks like this (in MyST syntax):
```{toctree}
:maxdepth: 1
dlg/about/index
dlg/advanced/index
dlg/advanced_filter/index
... (more entries)
```
# Dialogs page
The dlg.html page is rendered like this as expected.
The index.md page looks like this. Note that I tried using maxdepth to fix my issue.:
```{toctree}
:maxdepth: 1
dlg
```
index.html is rendered like this:
Note how the Dialogs page entry is the last entry in the toctree, and that all entries are on one level. I was expecting the toctree to look like this:
- Dialogs page
- About EmEditor dialog box
- ...
Therefore I thought that using :maxdepth: 1 would only show Dialogs page and hide the rest. How do I make it so that only Dialogs page is shown in the table of contents for index.html?


I fixed the issue by rearranging the title. I moved the
# Dialogs pageline to the top of the page, before thetoctree. Now thedlg.mdfile looks like:Now the
index.htmlpage looks as I originally wanted it to.