Skip to main content

Mkdocs plugin to generate nav list from docs dir

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_gen_nav_plugin-0.2.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_gen_nav_plugin-0.2.0.tar.gz.

File metadata

  • Download URL: mkdocs_gen_nav_plugin-0.2.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for mkdocs_gen_nav_plugin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9dfb3dac3f5e3a195cfdb48c8ccb80af6878c3c8d368e5e4171d4488f55e80ed
MD5 5dc65559e162350fc41148d2f2ad0e27
BLAKE2b-256 e6deaa8d51e188ed932b11d7c27106e121f15e0fed14ee5c1e37cbdce6f4df7f

See more details on using hashes here.

File details

Details for the file mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_gen_nav_plugin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6e5b4f8d9cf3e00d872e71617b283725bd83da802784d1698e5e60c7522472
MD5 37449de4d11966f31c0e08edcf0cbc4f
BLAKE2b-256 29eeb4e796ad8cd162a809577d157207c4b3b45d94691f0ce7cae49c28aafa7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page