Skip to content

Commit d03e0a5

Browse files
committed
feat(mkdocs): use mkdocs-click to create the CLI reference
1 parent 632054b commit d03e0a5

5 files changed

Lines changed: 13 additions & 0 deletions

File tree

changelog.d/+8ac4be7f.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use mkdocs-click to create the CLI reference.

template/pyproject.toml.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ type = [
100100
docs = [
101101
"black>=25.11",
102102
"mkdocs>=1.6.1",
103+
"mkdocs-click>=0.9",
103104
"mkdocs-material>=9.7",
104105
"mkdocstrings-python>=2",
105106
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Commands
2+
3+
::: mkdocs-click
4+
:module: {{ package_name }}.cli
5+
:command: main
6+
:prog_name: {{ distribution_name }}
7+
:style: table

template/{% if docs %}docs{% endif %}/{% if docs == 'mkdocs' %}.{% endif %}/reference/{% if cli %}cli.md{% endif %}.jinja renamed to template/{% if docs %}docs{% endif %}/{% if docs == 'mkdocs' %}.{% endif %}/reference/{% if cli and cli != 'click' %}cli.md{% endif %}.jinja

File renamed without changes.

template/{% if docs == 'mkdocs' %}mkdocs.yml{% endif %}.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ watch:
6565
- src/{{ package_name }}
6666

6767
markdown_extensions:
68+
{%- if cli == 'click' %}
69+
- attr_list
70+
- mkdocs-click
71+
{%- endif %}
6872
- pymdownx.highlight:
6973
use_pygments: true
7074
pygments_lang_class: true

0 commit comments

Comments
 (0)