Skip to main content

API documentation generator for MdBook

Project description

python-apibook

GitHub deploymentsPyPI - Version

Are you tired of fighting Sphinx to get it to do what you want? Do you want to write your documentation in Markdown? Do you want to easily combine prose with API docs? Then this is the tool for you!

python-apibook uses the AST module to parse your code and generate API documentation in Markdown format, and can easily be merged into your existing mdbook SUMMARY.md file.

Installation

pip install git+https://github.com/tgolsson/python-apibook.git

Usage

To see the available options, run:

python -m apibook.cli --help

To generate API documentation for a package, run:

python-apibook my_package doc/src --summary-template-file doc/SUMMARY.tmpl

This will generate all markdown sources and a SUMMARY.md file in the doc/src directory, which you can include in your mdbook project. Hint: Combine this with mdbook serve doc to see the results in real-time.

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

apibook-0.1.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

apibook-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file apibook-0.1.1.tar.gz.

File metadata

  • Download URL: apibook-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for apibook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01ce716e7a529b08cf8f9887dd5d1d915e8834d72d90af2b79515760f9c19d56
MD5 c9506fa15a2bab50d6aabaec9734e982
BLAKE2b-256 a18bf7a4dc4b92a1b75dea4c62fddb0cb3bc3b6621da78ba21da493e57a4c7aa

See more details on using hashes here.

File details

Details for the file apibook-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: apibook-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for apibook-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c047ea8d2a610a99d8b97bccd74c50559afc5d1f39d113b2f0e70e67f71b0bba
MD5 a5caa8b5804d514291627283a738715c
BLAKE2b-256 3820474ee4e167085468c44999662f2bc8954c86e55d230f4f500643a6fd685f

See more details on using hashes here.

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