Skip to main content

Create Python API documentation in Markdown format.

Project description

Pydoc-Markdown

Python versions Pypi version Build status Gitter chat

Pydoc-Markdown is a tool to create Python API documentation in Markdown format. Instead of executing your Python code like so many other documentation tools, it parses it using docspec instead. To run Pydoc-Markdown, you need to use at least Python 3.7.

>> Go to the Documentation

Installation

I recommend to install Pydoc-Markdown using Pipx.

$ pipx install pydoc-markdown[novella]

Features

  • Understands multiple documentation styles (Sphinx, Google, Pydoc-Markdown specific) and converts them to properly formatted Markdown
  • Can parse docstrings for variables thanks to docspec (#: block before or string literal after the statement)
  • Generates links to other API objects per the documentation syntax (e.g. #OtherClass for the Pydoc-Markdown style)

News

Starting with 4.6.0, development focuses on integrating with Novella and use it as a replacement for tool-specific renderers thus far provided directly by Pydoc-Markdown (i.e. integrations with MkDocs, Hugo and Docusuraus). Such integrations are/will be provided by Novella instead.

With the Novella integration, you can now place generated API content in Markdown format inline with your existing Markdown documentation source files using @pydoc tags. Check out the Documentation for more information on how to use Pydoc-Markdown with Novella.

The old style of using Pydoc-Markdown with a YAML or PyProject configuration to generate files and kick off the build is now deprecated but will be maintained for the foreseeable future (at least until the next major version bump). It is strongly recommended to migrate your existing projects to using the Novella build backend.

Contributing to Pydoc-Markdown

All contributions are welcome! Check out the Contribution Guidelines.

Questions / Need help?

Feel free to open a topic on GitHub Discussions!

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.6.1.tar.gz (42.2 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.6.1-py3-none-any.whl (64.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydoc-markdown-4.6.1.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for pydoc-markdown-4.6.1.tar.gz
Algorithm Hash digest
SHA256 9137af86c8f245cfe379c0168b0bffbfec6f4ebd9310116d555a49eb313698e4
MD5 8fc657916fe9755ac6f36f34673d5aa8
BLAKE2b-256 2f0d6eebb78da258316e86e21bd619d8dbafe42662bfab538616ec70bc782a55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydoc_markdown-4.6.1-py3-none-any.whl
  • Upload date:
  • Size: 64.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for pydoc_markdown-4.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c6a6d76c2bf7d22ac2161b05c021441e9eadec9739dae8c2a2e4b8578144733
MD5 4b1e6159be695bac514f66e27d199ae7
BLAKE2b-256 7d18ddb42a331a69c12bd16740a51ac6f7718574cbf1e6669749bb70ab019708

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