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.1a30.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

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

sphinx_ux_autodoc_layout-0.0.1a30-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_ux_autodoc_layout-0.0.1a30.tar.gz.

File metadata

File hashes

Hashes for sphinx_ux_autodoc_layout-0.0.1a30.tar.gz
Algorithm Hash digest
SHA256 1dbf8563a651e78c55f9b0cbc283dc4653ddeba82343195f1b245f764e33cd18
MD5 3a6fd62b1ac64f3990d63244f9aa977a
BLAKE2b-256 6080d867076c30994c27dbed3101955488e739c99d6f1bb1706758e16a76ad10

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_autodoc_layout-0.0.1a30.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.1a30-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_ux_autodoc_layout-0.0.1a30-py3-none-any.whl
Algorithm Hash digest
SHA256 a9e6a135cd792dde5b297eff0db0a787a0e976f1dc982e0697d56fc5d463c8b7
MD5 ab45e1567d80f9ceaf2a850ed00f180d
BLAKE2b-256 0b75dd8bbcdf1fe35d9b66b10dce1330a27613633b935dc05ff95b354df80a26

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_autodoc_layout-0.0.1a30-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