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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for mkdocs_enumerate_and_reference-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed57f99a45aea077fdbe46e49a784f3b9794ff6a2479f31847eaefaebb1a7882
MD5 9992f5b0283558e87dc098edcd740511
BLAKE2b-256 f4147ee72f63885c42013b81a071dfec2b1c7019c1068040e456f078db7427bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_enumerate_and_reference-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2e1aa38b4078489fe5cf99ea8aaa3747c3b2c6a0c3d38f77bdcc70c6b6a4986
MD5 37122e0e9817932ed5a1e9bb1beb39ef
BLAKE2b-256 dcdb51f22fbd1aaa57c7c273e26e5af1f3eb59f894d868d710e119ebfa2402a4

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