-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Milestone
Description
As discussed on Gitter, we should consider excluding pages from auto-populated navigation if they are tagged as NOT_IN_NAV within a plugin as part of on_files. Currently, only pages tagged with EXCLUDED are not considered. The solution that @oprypin suggested was to simply change:
mkdocs/mkdocs/structure/nav.py
Line 128 in 79f17b4
| documentation_pages = files.documentation_pages() |
... to:
documentation_pages = files.documentation_pages(inclusion = InclusionLevel.is_in_nav)- Set pages that should not be auto-populated to
InclusionLevel.EXCLUDEDinon_files - Set pages that were previously excluded to
InclusionLevel.NOT_IN_NAVinon_nav(after population)
oprypin
Metadata
Metadata
Assignees
Labels
No labels