-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
π What happened?
By using one of the filter options related to tags (exclude_tag or include_tag) the page navigation title defined in the mkdocs.yml config are lost for all pages. Instead the other options for page navigation titles are used (title field in front matter, first H1 header and file name).
This leads to different behaviors for included pages compared to the unfiltered result.
π¬ How to reproduce?
- Create a mkdocs.yml with a
exclude_tagorinclude_tagconfiguration and page titles in the nav section like below - Run
mkdocs serveand inspect the navigation titles of the pages - The file name is used as title
- Disable the file-filter-plugin
- The title from the nav section is used
ποΈ Code Sample / Log
site_name: test
plugins:
file-filter:
enabled: true
only_doc_pages: true
exclude_tag:
- public
nav:
- Config Index: index.md
- Config Docu: docu.md
- Config Bla: example.mdπ Environment (plugin version)
0.2.0
π Environment (OS)
Windows
π Environment (Python)
No response
π Environment (MkDocs)
1.6.0
π· Screenshots
No response
π Expected behavior
Also after filtering with this plugin the navigation title from the config file should be used first before the other options
π Additional context
I had a look into the code and it seems like the __get_metadata function is producing this issue. Havent figured out why, but i can look into it further and provide a fix if desired
π Code of Conduct
- I agree to follow this project's Code of Conduct.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working