Skip to main content

Mkdocs plugin for numbering and referencing

Project description

PyPI - Python Version PyPI PyPI - Downloads GitHub contributors PyPI - License

Mkdocs Plugin for Enhanced Referencing and Enumeration

An Mkdocs plugin for referencing within documentation, section numbering, and page heading numbering.

Features

  1. Referencing: This is the main feature of the plugin. Using a tag system, it allows referencing specific points on pages without having to specify the page path.
  2. Navigation numbering: navigation sections are automatically numbered
  3. Admonition numbering: numbering of (selected) admonitions accross documentation

How it works

The plugin search for references in the complete documentation to create the links to the appropriate tags then transforms the tag ID with corresponding link.

  • Sections enumeration does not work on first level sections
  • May be there's an issue if a page is used in multiple places
  • In navigation there need to be a section title, if only page provided : - page.md instead of : - subsection: page.md it will not work

Installation

pip install mkdocs-enumerate-and-reference

Enable the pluggin

plugins:
  - enumerate-and-reference

Example

plugins:
  - enumerate-and-reference:
      enumerate:
        enabled: true
        cumulative: true
      number_headings:
        enabled: true
        activated: true
        lowest_level: 2

Parameters

The plugin is composed of two parts that can be either be used or not seprately: the enumerate and the number_headings part.

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_enumerate_and_reference-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mkdocs_enumerate_and_reference-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mkdocs_enumerate_and_reference-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9bb6eaaa2307a655be3d57124147e9ddfe6a64b77b0275d9d045404747cc244c
MD5 1fa4cdb78e36e59d1b91b942a9c3f632
BLAKE2b-256 4edaa6bf7b7496a3fcad9b540c49c39e86449db5260e18dd39e0c840ef190274

See more details on using hashes here.

File details

Details for the file mkdocs_enumerate_and_reference-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_enumerate_and_reference-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a54d4870fa84829f6a73a139f391f7a80ba5a8411a0785ca0c77da4882cd44c0
MD5 62668dead023f6040593a2cf839d43a2
BLAKE2b-256 9bed493d900000d83494d59509f699634f42a488ff0b1b59ce146e46199e601a

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