-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Section index pages seems not work #3361
Comments
You need to enable |
Thank you very much, but please be patient, there is something more that I do not understand. If I add
all subsections disappear. How to have both index pages and sections? |
Material for MkDocs only supports a single |
Thank you very much. Where can I read about it?
I have renamed all file. This is my new nav:
These my features:
But my two sections are not linked to any document. |
I finally understood and solved: you cannot have two index files at the same hierarchical level of navigation, but you can have multiple index files, Probably I will propose you some PR in your great documentation site. Thank you |
Related to: > Material for MkDocs only supports a single index.md (or README.md which is the same for MkDocs). If you rename the files of those pages they will reappear. squidfunk#3361 (comment)
f3926bf fixes the issue. Subsequent |
I felt stupid. Glad to have been useful, I was a little crazy with a thousand tries Thank you |
No worries! The navigation template is very complex, which is why I didn't consider fixing this case in the first place, but sometimes a second look with fresh eyes reveals a solution that is much simpler than everything considered before 😉 |
Released as part of 8.1.3. |
That seems to break the integration with mkdocs-section-index, /cc @oprypin. With mkdocs-section-index 0.3.2, released Oct. 2, and
Snippets of my setup: $ tree docs/
docs/
├── index.md
└── reference
├── testing
│ ├── examples.md
│ ├── index.md
│ └── models.md
└── SUMMARY.md SUMMARY.md * [testing](testing/index.md)
* [examples](testing/examples.md)
* [models](testing/models.md) # mkdocs.yml (minimum contents)
nav:
- Home:
- Overview: index.md
- Code Reference: reference/
theme:
name: material
features:
- navigation.tabs
- navigation.top
markdown_extensions:
- toc
plugins:
- search
- literate-nav:
nav_file: SUMMARY.md
- section-index |
@pawamoy Yes, this broke that in a way that was hard to notice. |
Ah, apologies to you both for not checking mkdocs-section-index's issue tracker! Thanks @oprypin |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
I have set these features here:
And this is my navigation:
Why
Linee guida pubblicazione
is not linked to the section index file, and I have the index file below the section name in the tree?Expected behaviour
To have the section in tree linked to index file
Actual behaviour
The section is not linked to the index file
Steps to reproduce
I have inserted all my source file.
This is the repo https://github.com/ondata/guidaPraticaPubblicazioneCSV
Package versions
python --version
3.9.2mkdocs --version
1.2.3pip show mkdocs-material | grep -E ^Version
8.1.0Configuration
The text was updated successfully, but these errors were encountered: