MCPcopy Create free account
hub / github.com/NiklasRosenstein/pydoc-markdown

github.com/NiklasRosenstein/pydoc-markdown

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.9.0 ↗ · + Follow · compare 2 versions
425 symbols 1,598 edges 72 files 108 documented · 25% ● updated 5d ago★ 50224 open issues

Browse by type

⨍ Functions 353◇ Types & classes 70↳ Endpoints 2
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Pydoc-Markdown

Python versions PyPI version

Generate Markdown API documentation for Python code — without importing it. Pydoc-Markdown parses your source with docspec, converts Google, Sphinx, NumPy and Markdown-style docstrings to Markdown, and writes plain Markdown files or pages for MkDocs, Hugo and Docusaurus.

[!NOTE] This project is maintained on a best-effort basis. If you are building a site with MkDocs, also consider mkdocstrings.

Quickstart

pipx install pydoc-markdown
pydoc-markdown -I src -p my_package --render-toc > api.md

For anything beyond a one-off, put the configuration in a file:

pydoc-markdown --bootstrap base   # writes pydoc-markdown.yaml
pydoc-markdown                    # renders it

Pydoc-Markdown needs Python 3.10+ to run; the code you document can target any Python version.

Documentation

niklasrosenstein.github.io/pydoc-markdown — getting started, configuration, docstring styles, static site generators, source links and the full plugin reference.

Contributing

Contributions are welcome — see the contribution guidelines. Questions go to GitHub Discussions.

Used by CosmPy, Haystack, envd, tqdm and others — open a pull request to add your project.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 200
Function 153
Class 70
Route 2

Languages

Python100%
TypeScript1%

Modules by API surface

src/pydoc_markdown/contrib/renderers/markdown.py31 symbols
src/pydoc_markdown/interfaces.py30 symbols
src/pydoc_markdown/contrib/renderers/hugo.py30 symbols
test/processors/test_sphinx.py19 symbols
test/renderers/test_markdown.py18 symbols
src/pydoc_markdown/contrib/source_linkers/git.py18 symbols
test/renderers/test_hugo_install.py15 symbols
src/pydoc_markdown/contrib/renderers/mkdocs.py15 symbols
src/pydoc_markdown/contrib/processors/sphinx.py15 symbols
src/pydoc_markdown/util/pages.py14 symbols
src/pydoc_markdown/util/docspec.py13 symbols
src/pydoc_markdown/main.py13 symbols

Dependencies from manifests, versioned

@docusaurus/core3.10.2 · 1×
@docusaurus/faster3.10.2 · 1×
@docusaurus/module-type-aliases3.10.2 · 1×
@docusaurus/preset-classic3.10.2 · 1×
@docusaurus/types3.10.2 · 1×
@mdx-js/react3.0.0 · 1×
clsx2.0.0 · 1×
react19.0.0 · 1×
react-dom19.0.0 · 1×
watchdog1×
yapf0.30.0 · 1×

For agents

$ claude mcp add pydoc-markdown \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page