Skip to main content

Autogenerates a project's mkdocs reference documentation via mkdocstrings-python

Project description

mkdocstrings-python-generator

mkdocstrings-python-generator is a mkdocs plugin for generating markdown pages automatically from python source code.

It is intended to fill a gap which is currently left to each user of mkdoctstings-python. Namely: generating markdown files for each python file.

Note despite the name there is no affiliation between mkdocstrings and mkdocstrings-python-generator. Please try to determine which plugin is to blame before posting issues here or there.

Features

Its advantages over the mkdocstrings-python recipe are:

  • ✅ Easier to use (no writing code for yourself)
  • ✅ Well formatted nav out of the box. Package names with underscores are not title case 📦
  • ✅ Compatibility with both explicit nav defined in mkdocs.yaml and implicit nav with no definition in mkdocs.yaml
  • ✅ Supports __init__.py files as section indexes if supported by the theme.
  • ✅ Edit URI compatible with both edit_uri and edit_uri_template

Minimal Example

See Configuration for more detail

# Configure mkdocstrings-python
- mkdocstrings:
    handlers:
      python:
        options:
          show_submodules: false

# Configure mkdocstrings-python-generator
- mkdocstrings-python-generator:
    source_dirs:
      # Path to your source directory relative to mkdocs.yaml directory.
      - base: src/

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

Built Distribution

File details

Details for the file mkdocstrings_python_generator-1.0.0rc1.tar.gz.

File metadata

File hashes

Hashes for mkdocstrings_python_generator-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 5c8392a8b900ca70e3a78d11c6286e4845443da2ba2946c0fb7a1e4ed18e8744
MD5 0725b38c78b685a81c0053b5fd38ff17
BLAKE2b-256 a9660e267124523783a2139767a3df6f41297f67e2e85bb0f3d6e9f4c08d9488

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on couling/MkdocstringsPythonGenerator

Attestations:

File details

Details for the file mkdocstrings_python_generator-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocstrings_python_generator-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd97807076b59dd0019fd0d60a3f4181f495f838e874a6fd92075fa7f22d596
MD5 031d80d859b4ae2f6b3e485ff7735a8b
BLAKE2b-256 c0b6f028c62ce2061404b5566464231540878b8384f05350e8fafe6fbde040f1

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on couling/MkdocstringsPythonGenerator

Attestations:

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