Generate MDX API documentation from Python modules
Project description
mdxify
Generate MDX API documentation from Python modules with automatic navigation structure.
Installation
pip install mdxify
Usage
Generate documentation for all modules in a package:
mdxify --all --root-module mypackage --output-dir docs/api
Generate documentation for specific modules:
mdxify mypackage.core mypackage.utils --output-dir docs/api
Options
modules: Specific modules to document (if none specified, generates all)--all: Generate documentation for all modules under the root module--root-module: Root module to generate docs for (default: prefect)--output-dir: Output directory for generated MDX files (default: docs/v3/api-ref)--update-nav/--no-update-nav: Update docs.json navigation (default: True)
Features
- Fast AST-based parsing - No module imports required
- MDX output - Compatible with modern documentation frameworks
- Automatic navigation - Generates hierarchical navigation structure
- Google-style docstrings - Formats docstrings using Griffe
- Smart filtering - Excludes private modules and known test patterns
Development
# Install development dependencies
uv sync
# Run tests
uv run pytest
# Run type checking
uv run ty check
# Run linting
uv run ruff check src/ tests/
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
mdxify-0.1.0a1.tar.gz
(31.4 kB
view details)
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
mdxify-0.1.0a1-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file mdxify-0.1.0a1.tar.gz.
File metadata
- Download URL: mdxify-0.1.0a1.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
577d329ef59ed62f46289d1f65c2cef60e8cd4ca2e92164e4fed970b9c0127f0
|
|
| MD5 |
b254d0d63462dbda199e62d88e9ef4e4
|
|
| BLAKE2b-256 |
ec34f3f6229ce447c6d40588351b36f7ff5c44e93267e688865ca508857c280b
|
File details
Details for the file mdxify-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: mdxify-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c51308163b6877ae0d9e159000efc4f94e2766caa449c4b1bfe33996a0b99d74
|
|
| MD5 |
81d5dfefaf758e0b33b0c732220abec9
|
|
| BLAKE2b-256 |
86df1524e610078615f0fe335c12e56a964d513368717a71fead8ab2cf4cf0da
|