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.1.0.tar.gz (27.5 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.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx-click-5.1.0.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for sphinx-click-5.1.0.tar.gz
Algorithm Hash digest
SHA256 6812c2db62d3fae71a4addbe5a8a0a16c97eb491f3cd63fe34b4ed7e07236f33
MD5 9baf1d4e0fbc83d3c56b5b5fc75b0887
BLAKE2b-256 9a9b5ab964dc1b4a47a0f3bfb6cb48c7a234d95f956e5338ad4e55797f86c4f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sphinx_click-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for sphinx_click-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae97557a4e9ec646045089326c3b90e026c58a45e083b8f35f17d5d6558d08a0
MD5 3772001a6abc4d531c31804ca7b514b7
BLAKE2b-256 c5723f1f052aa00fc4c7e9976eb845eeae25dabf4ee73a27618776f9f44009d0

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