# mkdocs-click **Repository Path**: mirrors_DataDog/mkdocs-click ## Basic Information - **Project Name**: mkdocs-click - **Description**: An MkDocs extension to generate documentation for Click command line applications - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mkdocs-click   [](https://pypi.org/project/mkdocs-click/) An MkDocs extension to generate documentation for Click command line applications. Originally developed by [Datadog](https://www.datadoghq.com). ## Installation Install from PyPI: ```bash pip install mkdocs-click ``` ## Quickstart Add `mkdocs-click` to Markdown extensions in your `mkdocs.yml` configuration: ```yaml site_name: Example theme: readthedocs markdown_extensions: - mkdocs-click ``` Add a CLI application, e.g.: ```python # app/cli.py import click @click.group() def cli(): """Main entrypoint.""" @cli.command() @click.option("-d", "--debug", help="Include debug output.") def build(debug): """Build production assets.""" ``` Add a `mkdocs-click` block in your Markdown: ```markdown # CLI Reference This page provides documentation for our command line tools. ::: mkdocs-click :module: app.cli :command: cli ``` Start the docs server: ```bash mkdocs serve ``` Tada! 💫  ## Usage ### Documenting commands To add documentation for a command, add a `mkdocs-click` block where the documentation should be inserted. Example: ```markdown ::: mkdocs-click :module: app.cli :command: main ``` For all available options, see the [Block syntax](#block-syntax). ### Multi-command support When pointed at a group (or any other multi-command), `mkdocs-click` will also generate documentation for sub-commands. This allows you to generate documentation for an entire CLI application by pointing `mkdocs-click` at the root command. ### Tweaking header levels By default, `mkdocs-click` generates Markdown headers starting at `