Skip to main content

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.adoc file 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

pysciidoc-0.3.0.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysciidoc-0.3.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pysciidoc-0.3.0.tar.gz.

File metadata

  • Download URL: pysciidoc-0.3.0.tar.gz
  • Upload date:
  • Size: 47.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pysciidoc-0.3.0.tar.gz
Algorithm Hash digest
SHA256 76a822132e3ecf3f118f407e486c199b21f3ff34f2597b40207899fbd8a732c3
MD5 0a6a1c993fde56a3541e079bc733ca41
BLAKE2b-256 7cd1ee55b8a8e2427f2af46a2344d8a45fe2661d28f7c5e12113dd909aee0f67

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysciidoc-0.3.0.tar.gz:

Publisher: publish.yml on glencoe/pysciidoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysciidoc-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pysciidoc-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pysciidoc-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9498be9c9cc7e22cd76808c331bd92feea4edace80f03c12f69023abfa171209
MD5 8a36bf97a68d7c91efe0feea329c9765
BLAKE2b-256 8700d9d982aea0281a8615ccad2176afd56c2f2f5c4ece928981a4dc6da093cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysciidoc-0.3.0-py3-none-any.whl:

Publisher: publish.yml on glencoe/pysciidoc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page