autogenerate asciidoc api documenation from docstrings
Project description
pysciidoc
pysciidoc reads python docstrings and converts them to formatted asciidoc.
It is meant to be used in conjunction with antora to
automatically generate the documentation for the python package's API.
Find full documentation at https://glencoe.github.io/pysciidoc/
Features
- automatically generate
nav.adocfile for antora - show type hints in documentation
- show default values for function arguments
Installation
pip install 'git+https://github.com/glencoe/pysciidoc.git'
Usage
pysciidoc --api-output-dir <path> --nav-file <path> <package-name>
Example using pysciidoc with antora to generate pysciidoc's API documentation
pysciidoc --api-output-dir docs/modules/api/pages \
--nav-file docs/modules/api/nav.adoc pysciidoc
Todo
- automatically format and link google doc style
- examples
- attributes
- return values
- resolve type hints for
<factory>from dataclass signatures
Not planned
- support for annotated attributes and variables
- not supported because there is no PEP specifying how to annotate these
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
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 pysciidoc-0.2.1.tar.gz.
File metadata
- Download URL: pysciidoc-0.2.1.tar.gz
- Upload date:
- Size: 147.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66a09f7e321a126b13d52887d28831e085b0ec3c87e0459016edc4e038f23550
|
|
| MD5 |
990d220f13e8439489eb3e80e683d4f9
|
|
| BLAKE2b-256 |
fbe1d33c0e14c0af10334319563d420d5bd0e29950cb3cfdcb278e18af652123
|
Provenance
The following attestation bundles were made for pysciidoc-0.2.1.tar.gz:
Publisher:
publish.yml on glencoe/pysciidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysciidoc-0.2.1.tar.gz -
Subject digest:
66a09f7e321a126b13d52887d28831e085b0ec3c87e0459016edc4e038f23550 - Sigstore transparency entry: 160730815
- Sigstore integration time:
-
Permalink:
glencoe/pysciidoc@9e8faecdcb394607e683ffe37ee9b828d34cd8e4 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/glencoe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e8faecdcb394607e683ffe37ee9b828d34cd8e4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pysciidoc-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pysciidoc-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e03fd3729e9e7a765219c85f8d80d46afc2827574eca2d51009ac4b8a1f93b6
|
|
| MD5 |
a74f496d79dd624a881cda8c3c01df9e
|
|
| BLAKE2b-256 |
bf848b77e6f618be6d9e4ec68ee8317564fe769bff873fe14229a2cf9d39f88d
|
Provenance
The following attestation bundles were made for pysciidoc-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on glencoe/pysciidoc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysciidoc-0.2.1-py3-none-any.whl -
Subject digest:
7e03fd3729e9e7a765219c85f8d80d46afc2827574eca2d51009ac4b8a1f93b6 - Sigstore transparency entry: 160730817
- Sigstore integration time:
-
Permalink:
glencoe/pysciidoc@9e8faecdcb394607e683ffe37ee9b828d34cd8e4 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/glencoe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e8faecdcb394607e683ffe37ee9b828d34cd8e4 -
Trigger Event:
push
-
Statement type: