Skip to main content

Create Python API documentation in Markdown format.

Project description

Pydoc-Markdown

Python versions Pypi version Build status

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydoc-markdown-4.6.0.tar.gz
  • Upload date:
  • Size: 42.1 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.0.tar.gz
Algorithm Hash digest
SHA256 0c04c0393ebc4a3c86367dee48e94f2eeee622c8087f81f707e40cdb28eb1c73
MD5 5e41c8de1a6e5f050405635e55036aea
BLAKE2b-256 111cca7576454c8552d38892486f7d6e83f8a0359c691f766d1959216b22f986

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydoc_markdown-4.6.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8064aeb2ddabb02a59052be78ba6491ae3295e48f731cb8d13885b6e434a2444
MD5 216ff58dece00be7f8b211ad14c95599
BLAKE2b-256 5a6e90363208e1496ea71323e5b4b2e76175edf2576f78bba39d58477d440493

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