Skip to main content

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
  • --all: Generate documentation for all modules under the root module
  • --root-module: Root module to generate docs for (required when using --all)
  • --output-dir: Output directory for generated MDX files (default: docs/api)
  • --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


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.2.0.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdxify-0.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file mdxify-0.2.0.tar.gz.

File metadata

  • Download URL: mdxify-0.2.0.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mdxify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7b12d0f8af43397f70eda7fb603f6490921529337f2d36120e2b2b80dc833995
MD5 8dc7c52bc9bf1a7d31ab801ee03aec45
BLAKE2b-256 d00079c3c7204153f5d2a125a42d3eefb3d70e87d37beacb1a51122ee05422ab

See more details on using hashes here.

File details

Details for the file mdxify-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mdxify-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mdxify-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25956ea35883d4909121c6d7f582a2b4586eecfda7ff2f6a08eb9e0795f55656
MD5 884e4dd30d96bb1dd1aef546078de820
BLAKE2b-256 ddbbc9e70a69c1ada190343335473b65df65a4e5b8c85332c94d016952a4a254

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