Skip to main content

Generate Fern documentation from Python packages using static analysis.

Project description

py2fern

Generate Fern API documentation from Python packages using static analysis.

Simplified fork of sphinx-autodoc2 focused purely on Python → Fern markdown output.

Installation

pipx install py2fern

Usage

Generate Fern markdown documentation:

py2fern write /path/to/your/package

Specify output directory:

py2fern write /path/to/your/package --output ./docs/api

This creates:

  • MDX files with Fern-compatible frontmatter and slugs
  • navigation.yml for Fern docs structure

Acknowledgments

This project is a fork of the excellent sphinx-autodoc2 by Chris Sewell. All credit for the core functionality goes to the original project.

Development

All configuration is mainly in pyproject.toml.

Use tox to run the tests.

pipx install tox
tox -av

Use pre-commit to run the linters and formatters.

pipx install pre-commit
pre-commit run --all-files
# pre-commit install

flit is used to build the package.

pipx install flit
flit build

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

py2fern-0.1.5.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

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

py2fern-0.1.5-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file py2fern-0.1.5.tar.gz.

File metadata

  • Download URL: py2fern-0.1.5.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for py2fern-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ae3b329eb5d71a7a2d4e269306c9385bad0e0547efdb8061ee30be944da51357
MD5 e06a48df4d8e2a1ed64a9ff6cd36509f
BLAKE2b-256 cd978ded77c02f4aa17f7fe3a6807cdacd4c2c903c583b987e767b294eb77732

See more details on using hashes here.

File details

Details for the file py2fern-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: py2fern-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for py2fern-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e187b28a9810c9cb77c93d5a61750edb54d4dfd00b41489fd93abe97daf52df3
MD5 5c0bc7b572e948bebded6d1518614d0a
BLAKE2b-256 82744b30a5e66503c77e3486ecfcec52695412fb8540548e6d5bb19dc046a7ca

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