Skip to main content

MkDocs plugin to add hierarchical numbering to nav and page headings

Project description

mkdocs-nav-numbering-plugin

MkDocs plugin that adds hierarchical numbering to navigation items and page headings.

Features

  • Number nav sections, pages, and links (optional)
  • Number page headings based on nav position
  • Configurable depth limits for nav and headings
  • Configurable separator
  • Exclude specific pages

Installation

pip install mkdocs-nav-numbering-plugin

Usage

plugins:
  - nav-numbering:
      nav_depth: 4
      heading_depth: 5
      number_h1: true
      number_nav: true
      number_headings: true
      separator: "."
      exclude:
        - index.md

Options

  • enabled (bool, default: true)
  • nav_depth (int, default: 0) — 0 means unlimited
  • heading_depth (int, default: 0) — 0 means unlimited
  • number_nav (bool, default: true)
  • number_headings (bool, default: true)
  • number_h1 (bool, default: true)
  • separator (str, default: ".")
  • exclude (list, default: [])

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_nav_numbering_plugin-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_nav_numbering_plugin-1.0.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_nav_numbering_plugin-1.0.0.tar.gz.

File metadata

File hashes

Hashes for mkdocs_nav_numbering_plugin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f2bcc7d325219931150455b6ea8923f12c3d6067502b50075ea1ce785e8bb26b
MD5 3035c50fd5e269f6fbfd9fac1ac472cb
BLAKE2b-256 6bc46d787528b422007856ae3d13fb53d802f56b74a112e63c2d1643fd5891ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_nav_numbering_plugin-1.0.0.tar.gz:

Publisher: publish.yml on matusdrobuliak66/mkdocs-nav-numbering-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_nav_numbering_plugin-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_nav_numbering_plugin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d8b9e925b18061de9c500d2bfa4b7ffe2337f49a817399726abed1ec85d3979
MD5 37ba38462dfd6b8af176bc5b8b44ca86
BLAKE2b-256 78ceec14f5420beef688cd65a7030ca9592d08be141d133fd63a9291d422efdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_nav_numbering_plugin-1.0.0-py3-none-any.whl:

Publisher: publish.yml on matusdrobuliak66/mkdocs-nav-numbering-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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