Create Python API documentation in Markdown format.
Project description
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.6 or newer, however the code that you want to generate API documentation for can be for any Python version.
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>=3.0.0,<4.0.0'
Quickstart (MkDocs)
$ pipx install mkdocs
$ pydoc-markdown --bootstrap mkdocs
$ pydoc-markdown --bootstrap readthedocs
$ pydoc-markdown --server --open
What this does:
- Install MkDocs
- Create a
pydoc-markdown.ymlfile in the current directory - Create files to render your documentation on readthedocs.org
- 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:
- Create a
pydoc-markdown.ymlfile in the current directory - 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.
Copyright © 2020 Niklas Rosenstein
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydoc-markdown-3.8.0.tar.gz.
File metadata
- Download URL: pydoc-markdown-3.8.0.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5648b1a3e32031649b68a3c699f363ae8a168b0d9dd4d25767804ce8fe6c8b2b
|
|
| MD5 |
f9267e6a7049dbb78c2347c6788b7367
|
|
| BLAKE2b-256 |
072300f0fb13f1421e768f479adf195b7ca4fc25d7484f4b0a66020a420f6610
|
File details
Details for the file pydoc_markdown-3.8.0-py3-none-any.whl.
File metadata
- Download URL: pydoc_markdown-3.8.0-py3-none-any.whl
- Upload date:
- Size: 63.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e497f406c6adbdad92ed7e78614a6e214ddb5f2e52aadcc8e8d11fc0b03ab808
|
|
| MD5 |
558161131df7989d9dda0e166a1d16a2
|
|
| BLAKE2b-256 |
d00e822cbb0563642dbb0329403596413dfa51cdae02c8eaadb479b093613222
|