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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for mkdocs_enumerate_and_reference-0.2.0.tar.gz
Algorithm Hash digest
SHA256 161cc1a3819a7c56ade6f198d804f07f4236c5e2ddd85991fd0a05ddf557fe84
MD5 36dfb46257002cfcb240956b4d3d4dc5
BLAKE2b-256 cb71fb04ff71fe653e9e347efa6b097dfd7e3a3086d8749c14421aa290eefb48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_enumerate_and_reference-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8491638e57d3a3b4f3ad7b815e20ef1583dacf6a2406e7cb6391676a7699d87d
MD5 fcfea38db63feb75e59862bec883c59b
BLAKE2b-256 c57888c58e2120c95715be044c6a98c65ab7d1029ca75efe97226ad810db5585

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