Skip to content

Commit fe30019

Browse files
committed
add cli section in docs
1 parent cb5237e commit fe30019

5 files changed

Lines changed: 14 additions & 0 deletions

File tree

docs/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# API
22

3+
This section documents the Application Programming Interface (API) for the `spatialdata_io` package.
4+
35
```{eval-rst}
46
.. module:: spatialdata_io
57
```

docs/cli.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CLI
2+
3+
This section documents the Command Line Interface (CLI) for the `spatialdata_io` package.
4+
5+
```{eval-rst}
6+
.. click:: spatialdata_io.__main__:cli
7+
:prog: spatialdata_io
8+
:nested: full
9+
```

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"sphinx_autodoc_typehints",
5858
"sphinx.ext.mathjax",
5959
"IPython.sphinxext.ipython_console_highlighting",
60+
"sphinx_click",
6061
*[p.stem for p in (HERE / "extensions").glob("*.py")],
6162
]
6263

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:maxdepth: 1
88
99
api.md
10+
cli.md
1011
changelog.md
1112
template_usage.md
1213
contributing.md

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ doc = [
5151
"sphinxcontrib-bibtex>=1.0.0",
5252
"sphinx-autodoc-typehints",
5353
"sphinx-design",
54+
"sphinx-click",
5455
# For notebooks
5556
"ipython>=8.6.0",
5657
"sphinx-copybutton",

0 commit comments

Comments
 (0)