MkDocs Gen Nav Plugin
This plugin generates the config['nav'] automatically for your MkDocs documentation site by finding all markdown files from the global config['docs_dir'].
Rules
The following rules are used to generate the navigation:
- The file or directory names are used as the navigation title.
- If a path name starts with two digits and '_' characters, it is ignored in the title. This means that it is only used to sort the navigation list.
- If a path name starts with '_', it will be ignored. This means that the links to that markdown file should be a part of some other document manually.
- The file named "index.md" in the docs root dir will be ignored. (It will be used as Home page)
Configuration
Add following lines to your mkdocs.yml configuration file:
plugins:
- gen_nav:
enabled: true
Example
you can find example in examples directory
Install
pip install mkdocs-gen-nav-plugin
Development
Metadata
Release files for mkdocs-gen-nav-plugin 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_gen_nav_plugin-0.2.0.tar.gz | 11.2 kB | Without provenance | Details for mkdocs_gen_nav_plugin-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl |
Total release size: 18.8 kB
Security for mkdocs-gen-nav-plugin 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.