Skip to main content

Componentized layout for Sphinx autodoc output

Project description

sphinx-ux-autodoc-layout

Componentized layout for Sphinx autodoc output. It preserves Sphinx's outer dl / dt / dd structure while rebuilding managed object-description entries into stable api-* components. The current shared layout covers Python API objects, pytest fixtures, Sphinx confval entries, docutils rst:* entries, and internal FastMCP mcp:tool prototypes used to validate future consolidation work.

The extension keeps header composition in a late doctree-resolved pass so badges, source links, and permalinks can be positioned independently without raw HTML mutation. Large signatures can fold into native multiline signature markup, and expanded folded signatures show annotations by default via api_signature_show_annotations.

For shared consumers, the public helper surface now includes:

  • build_api_card_entry() for section-card consumers that need the same inner api-* shell without becoming desc entries
  • build_api_summary_section() for summary/index wrappers such as config and fixture tables

Install

$ pip install sphinx-ux-autodoc-layout

Usage

Standalone Sphinx project:

extensions = ["sphinx.ext.autodoc", "sphinx_ux_autodoc_layout"]
api_layout_enabled = True

With gp-sphinx:

conf = merge_sphinx_config(
    ...,
    extra_extensions=["sphinx_ux_autodoc_layout"],
    api_layout_enabled=True,
)

Documentation

See the full documentation for configuration reference, CSS classes, and live demos.

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

sphinx_ux_autodoc_layout-0.0.1a16.dev4.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file sphinx_ux_autodoc_layout-0.0.1a16.dev4.tar.gz.

File metadata

File hashes

Hashes for sphinx_ux_autodoc_layout-0.0.1a16.dev4.tar.gz
Algorithm Hash digest
SHA256 d196e24f8eddd5b65daf9ee4a140580c18b752ec5f8aeb5c80310a05574c53bf
MD5 a3f52e652b62fc3a40a9cad49e0faee7
BLAKE2b-256 133bd4faf0d4fe9d141e00fa975773e28d6aa37a706d8a83b6435057856f1cad

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_autodoc_layout-0.0.1a16.dev4.tar.gz:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_ux_autodoc_layout-0.0.1a16.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_ux_autodoc_layout-0.0.1a16.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 9048ff9c14fecb81b4a3981722a0bd3d9288fa3bf1b3d3662231a3fd0b22c292
MD5 ff6533916a20f22a6d909a8b970b6b84
BLAKE2b-256 0d06cb7f606d822f73593605f8e25cf2c8e141fb0eb9ba1944ed1b398702b2ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_autodoc_layout-0.0.1a16.dev4-py3-none-any.whl:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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