Skip to main content

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

Development Guide

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)

Source distribution for mkdocs-gen-nav-plugin 0.2.0
File Size Uploaded
mkdocs_gen_nav_plugin-0.2.0.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-gen-nav-plugin 0.2.0
File Interpreter ABI Platform
mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / mkdocs_gen_nav_plugin-0.2.0.tar.gz

Download URL mkdocs_gen_nav_plugin-0.2.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9dfb3dac3f5e3a195cfdb48c8ccb80af6878c3c8d368e5e4171d4488f55e80ed
BLAKE2b-256 checksum
How to use checksums
e6deaa8d51e188ed932b11d7c27106e121f15e0fed14ee5c1e37cbdce6f4df7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl

Download URL mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c6e5b4f8d9cf3e00d872e71617b283725bd83da802784d1698e5e60c7522472
BLAKE2b-256 checksum
How to use checksums
29eeb4e796ad8cd162a809577d157207c4b3b45d94691f0ce7cae49c28aafa7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page