Skip to main content

Create Python API documentation in Markdown format.

Project description

Python versions Pypi version Build status Docs status

Pydoc-Markdown

Pydoc-Markdown is a tool and library to create Python API documentation in Markdown format based on lib2to3, allowing it to parse your Python code without executing it.

Pydoc-Markdown requires Python 3.7 or newer, however the code that you want to generate API documentation for can be for any Python version.

>> Go to the Documentation

Features

  • Understands multiple doc styles (Sphinx, Google, Pydoc-Markdown)
  • Supports assignment docstrings (#: block before or string literal after the statement)
  • Links references to other documented API objects [WIP]
  • MkDocs, Hugo and Docusaurus integration

Installation

Install Pydoc-Markdown from PyPI:

$ pipx install 'pydoc-markdown>=4.0.0,<5.0.0'

Quickstart (MkDocs)

$ pipx install mkdocs
$ pydoc-markdown --bootstrap mkdocs
$ pydoc-markdown --bootstrap readthedocs
$ pydoc-markdown --server --open

What this does:

  1. Install MkDocs
  2. Create a pydoc-markdown.yml file in the current directory
  3. Create files to render your documentation on readthedocs.org
  4. Render Markdown files from the Python modules/packages in your current working directory and run MkDocs to open a live-preview of the page.

Quickstart (Hugo)

$ pydoc-markdown --bootstrap hugo
$ pydoc-markdown --server --open

What this does:

  1. Create a pydoc-markdown.yml file in the current directory
  2. Render Markdown files from the Python modules/packages in your current working directory and run Hugo to open a live-preview of the page. If Hugo is not available on your system, it will be downloaded automatically.

Contributing to Pydoc-Markdown

All contributions are welcome! Check out the Contributing guidelines.

Questions / Need help?

Feel free to open a topic on GitHub Discussions!


Copyright © 2021 Niklas Rosenstein

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

pydoc-markdown-4.3.1.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

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

pydoc_markdown-4.3.1-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

Details for the file pydoc-markdown-4.3.1.tar.gz.

File metadata

  • Download URL: pydoc-markdown-4.3.1.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pydoc-markdown-4.3.1.tar.gz
Algorithm Hash digest
SHA256 080244c28e1c2c149346faaa059971908926c2312d2157f04587a7aa34e778af
MD5 c608fb16fa7c868d6fc34ea8c3882b2c
BLAKE2b-256 e56baf0eccaaf282a1ac3917b7685b80b0e11c11d884265f21be630eece08390

See more details on using hashes here.

File details

Details for the file pydoc_markdown-4.3.1-py3-none-any.whl.

File metadata

  • Download URL: pydoc_markdown-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for pydoc_markdown-4.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf925893c7a858aeb46b126ed699f5328efa62f8276dfecd5083fb1d6ff60f2a
MD5 bef59fdcca0e9f1433e7795399fc7b60
BLAKE2b-256 9f2d1fe72aa2c33e02db6deeda636ef0c68457cce5ce6bb6cc3a0cf9b310af1b

See more details on using hashes here.

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