Skip to content

Commit b08bfc9

Browse files
committed
Switch from click to argparse
1 parent b567ce8 commit b08bfc9

File tree

6 files changed

+1012
-550
lines changed

6 files changed

+1012
-550
lines changed

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"sphinx.ext.intersphinx",
3838
"sphinx.ext.napoleon",
3939
"myst_parser",
40-
"sphinx_click",
40+
"sphinxarg.ext",
4141
]
4242

4343
try:
@@ -49,6 +49,9 @@
4949

5050
myst_enable_extensions = ["html_image", "tasklist"]
5151

52+
# Allow argparse directive in MyST markdown
53+
myst_fence_as_directive = ["argparse"]
54+
5255
# Add any paths that contain templates here, relative to this directory.
5356
templates_path = ["_templates"]
5457

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Releaser CLI
22

3-
```{click} jupyter_releaser.cli:main
3+
The `jupyter-releaser` command-line interface provides tools for managing releases.
4+
5+
```{argparse}
6+
:module: jupyter_releaser.cli
7+
:func: create_parser
48
:prog: jupyter-releaser
5-
:nested: full
69
```

0 commit comments

Comments
 (0)