Skip to main content

Sphinx extension that automatically documents click applications

Project description

Build Status Documentation Status

sphinx-click is a Sphinx plugin that allows you to automatically extract documentation from a Click-based application and include it in your docs.

Installation

Install the plugin using pip:

$ pip install sphinx-click

Alternatively, install from source by cloning this repo then running pip locally:

$ pip install .

Usage

Enable the plugin in your Sphinx conf.py file:

extensions = ['sphinx_click']

Once enabled, you can now use the plugin wherever necessary in the documentation.

.. click:: module:parser
   :prog: hello-world
   :nested: full

Detailed information on the various options available is provided in the documentation.

Alternative

This plugin is perfect to document a Click-based CLI in Sphinx, as it properly renders the help screen and its options in nice HTML with deep links and styling.

However, if you are looking to document the source code of a Click-based CLI, and the result of its execution, you might want to check out click-extra. The latter provides the .. click:example:: and .. click:run:: Sphinx directives so you can capture and render, with full colors, the result of your CLI in your documentation.

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_click-6.2.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

sphinx_click-6.2.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_click-6.2.0.tar.gz.

File metadata

  • Download URL: sphinx_click-6.2.0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_click-6.2.0.tar.gz
Algorithm Hash digest
SHA256 fc78b4154a4e5159462e36de55b8643747da6cda86b3b52a8bb62289e603776c
MD5 a1000330f3e0a9da6e74920df2faaf80
BLAKE2b-256 9aeda9767cd1b8b7fbdf260a89d5c8c86e20e3536b9878579e5ab7965a291e55

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_click-6.2.0.tar.gz:

Publisher: ci.yaml on click-contrib/sphinx-click

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_click-6.2.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_click-6.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_click-6.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fb1851cb4f2c286d43cbcd57f55db6ef5a8d208bfc3370f19adde232e5803d7
MD5 38ecc751a54469e03a721067722e2814
BLAKE2b-256 44bdcb244695f67f77b0a36200ce1670fc42a6fe2770847e870daab99cc2b177

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_click-6.2.0-py3-none-any.whl:

Publisher: ci.yaml on click-contrib/sphinx-click

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