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-5.0.0.tar.gz (27.2 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-5.0.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-click-5.0.0.tar.gz.

File metadata

  • Download URL: sphinx-click-5.0.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for sphinx-click-5.0.0.tar.gz
Algorithm Hash digest
SHA256 6391b3ff97f26aedd49f9c5c0e7ceaa88270c4310be3d8ac013a5ed25bdc93d8
MD5 18d0b0629376f05dfe3cf18f032c1012
BLAKE2b-256 a72c4014c40ff93094cd0e4381a04da676b3414eb870612e85a72e9e1067732c

See more details on using hashes here.

File details

Details for the file sphinx_click-5.0.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_click-5.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for sphinx_click-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32a8f3a9a7dc5f8d7fe82b123caaf0c3b7c6c725a0b822bfa47ef8f151ba4297
MD5 8f156c20f3097ddf11dbeab54ea46129
BLAKE2b-256 e5f12f05de314bdb0e75e0661f5cb0b4f9cfada5ea6332916c7d3a2d99140c49

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