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
andedit_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
Release history Release notifications | RSS feed
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
- Download URL: mkdocstrings_python_generator-1.0.0rc1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c8392a8b900ca70e3a78d11c6286e4845443da2ba2946c0fb7a1e4ed18e8744 |
|
MD5 | 0725b38c78b685a81c0053b5fd38ff17 |
|
BLAKE2b-256 | a9660e267124523783a2139767a3df6f41297f67e2e85bb0f3d6e9f4c08d9488 |
Provenance
The following attestation bundles were made for mkdocstrings_python_generator-1.0.0rc1.tar.gz
:
Publisher:
release.yaml
on couling/MkdocstringsPythonGenerator
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mkdocstrings_python_generator-1.0.0rc1.tar.gz
- Subject digest:
5c8392a8b900ca70e3a78d11c6286e4845443da2ba2946c0fb7a1e4ed18e8744
- Sigstore transparency entry: 146692738
- Sigstore integration time:
- Predicate type:
File details
Details for the file mkdocstrings_python_generator-1.0.0rc1-py3-none-any.whl
.
File metadata
- Download URL: mkdocstrings_python_generator-1.0.0rc1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd97807076b59dd0019fd0d60a3f4181f495f838e874a6fd92075fa7f22d596 |
|
MD5 | 031d80d859b4ae2f6b3e485ff7735a8b |
|
BLAKE2b-256 | c0b6f028c62ce2061404b5566464231540878b8384f05350e8fafe6fbde040f1 |
Provenance
The following attestation bundles were made for mkdocstrings_python_generator-1.0.0rc1-py3-none-any.whl
:
Publisher:
release.yaml
on couling/MkdocstringsPythonGenerator
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
mkdocstrings_python_generator-1.0.0rc1-py3-none-any.whl
- Subject digest:
cdd97807076b59dd0019fd0d60a3f4181f495f838e874a6fd92075fa7f22d596
- Sigstore transparency entry: 146692740
- Sigstore integration time:
- Predicate type: