NiklasRosenstein / pydoc-markdown

Create Python API documentation in Markdown format.
http://niklasrosenstein.github.io/pydoc-markdown/
Other
460 stars 105 forks source link
app cli documentation-generator documentation-tool markdown mkdocs pydoc-markdown pydocmd python yaml-configuration

Pydoc-Markdown πŸ“ƒ

Python versions Pypi version

Disclaimer: I don't find enough time to properly maintain and develop this project. If you want to generate docstrings for your Python project with MkDocs, consider mkdocstrings instead.

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.

β†’ Go to the Documentation πŸ“˜

Table of Contents

Installation πŸ“¦

You can install Pydoc-Markdown using Pipx:

$ pipx install pydoc-markdown

If you plan on using the Novella integration, you may want to install it as:

$ pipx install novella
$ pipx inject novella pydoc-markdown[novella]

You need at least Python 3.7 to run Pydoc-Markdown. The Python version compatibility of the package you are looking to generate documentation for is irrelevant.

Features 🌟

News πŸ“’

4.7.0 (Undeprecating YAML configuration)

Many users prefer the YAML configuration over the using Novella, which is why starting with 4.7.0, the YAML style configuration is officially un-deprecated and will continue to be supported.

4.6.0 (Novella integration)

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!

Projects using Pydoc-Markdown πŸ“š

An incomplete list of projects that use Pydoc-Markdown to generate their API documentation. Feel free to open a pull request to add your project to this list!