An MkDocs plugin to generate documentation for a rich argparse parser
Project description
Mkdocs rich argparse
An MkDocs plugin to generate documentation for a rich argparse parser. It renders commands, sub commands and sub-sub commands which can have rich help messages.
Installation
Install from Pypi:
pip install mkdocs-rich-argparse
Usage
In your mkdocs.yml configuration file, add the plugin and configure it with the module and factory to document:
plugins:
- mkdocs-rich-argparse:
module: my_module
factory: my_factory_function
nav:
- CLI Reference: cli.md
Where my_module is the Python module containing your argparse parser factory function, and my_factory_function is the specific function that returns an argparse parser object. It should be callable without arguments. You can optionally add path to specify the path to the module if it's not in the Python path.
When serving or building your MkDocs site, the plugin will generate a cli.md file containing the documentation for the specified argparse parser.
See the example/ directory for a minimal example and a custom styled example.
Contributing
If you want to contribute to the development of mkdocs_rich_argparse, have a look at the contribution guidelines.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_rich_argparse-0.1.2.tar.gz.
File metadata
- Download URL: mkdocs_rich_argparse-0.1.2.tar.gz
- Upload date:
- Size: 178.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4c00e77ae02e7eaf167fd55820a914e0f0639b4e8e40301182b2534ad3bd11c
|
|
| MD5 |
9e0cb9de0051b3f918c26718003d4f62
|
|
| BLAKE2b-256 |
81fa8e110b5d544150690df3e095e1cc7f5217bd6f74b8a8152ac87eebb01038
|
Provenance
The following attestation bundles were made for mkdocs_rich_argparse-0.1.2.tar.gz:
Publisher:
pypi-publish.yml on i-VRESSE/mkdocs_rich_argparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_rich_argparse-0.1.2.tar.gz -
Subject digest:
d4c00e77ae02e7eaf167fd55820a914e0f0639b4e8e40301182b2534ad3bd11c - Sigstore transparency entry: 550348784
- Sigstore integration time:
-
Permalink:
i-VRESSE/mkdocs_rich_argparse@ff160acb0c669300708053380c2893d2aca09816 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/i-VRESSE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@ff160acb0c669300708053380c2893d2aca09816 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mkdocs_rich_argparse-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mkdocs_rich_argparse-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f87bffd9577638d0e0ffdc537b062d84f799b03c2336b5b60b7d0c9bc064faed
|
|
| MD5 |
b7386bae7ab7ec4b6333e29393b4b4b1
|
|
| BLAKE2b-256 |
62f18682961a9cd2f18e6c79ee7bb1f6d9272641f67200c7bf8495ea1ca71637
|
Provenance
The following attestation bundles were made for mkdocs_rich_argparse-0.1.2-py3-none-any.whl:
Publisher:
pypi-publish.yml on i-VRESSE/mkdocs_rich_argparse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_rich_argparse-0.1.2-py3-none-any.whl -
Subject digest:
f87bffd9577638d0e0ffdc537b062d84f799b03c2336b5b60b7d0c9bc064faed - Sigstore transparency entry: 550348792
- Sigstore integration time:
-
Permalink:
i-VRESSE/mkdocs_rich_argparse@ff160acb0c669300708053380c2893d2aca09816 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/i-VRESSE
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@ff160acb0c669300708053380c2893d2aca09816 -
Trigger Event:
release
-
Statement type: