How to display docs without use Page tree?🥲 #5178
-
IF I have a lot of *.md files and want to display them, I should add every single *.md to nav at mkdocs.yml
but there are too many *.md files, If I have one hundred *.md files, I need to edit one hundred times...🥲I'm tired to add it. 🥲 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
By default there is no such option. You can either remove the whole After installing it's best to remove the whole In nav:
- home: index.md
- news
- blog In
The plugin adds multiple ways to change the order of items, use I've been recently working on introducing this plugin to my team's docs, you can look at the commit as a rough guide. However note that the additional global plugin options are custom from my fork and are currently evaluated to be added to the main project, and that using the https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin |
Beta Was this translation helpful? Give feedback.
By default there is no such option. You can either remove the whole
nav
tree and it will automatically create it with all files in alphabetical order. You could change the naming of the files to be more consistent like0001_News.md
etc. If you want more control you can use theawesome-pages
plugin, however I'm not sure if it's compatible with the Material theme blog plugin.After installing it's best to remove the whole
nav
tree frommkdocs.yml
, and then add a.pages
file to a given directory where you want to structure thenav
tree part. I guess in your case you'd use 3.pages
files:In
docs/
root:In
news
andblog
:The plug…