Skip to content

Commit 6a41547

Browse files
authored
docs: add reference level in navigation (#80)
Fixes #79
1 parent f3eef8b commit 6a41547

3 files changed

Lines changed: 58 additions & 4 deletions

File tree

docs/mkdocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ watch:
1515

1616
nav:
1717
- Home: index.md
18-
- API Reference: api.md
19-
- CLI Reference: cli.md
18+
- Reference:
19+
- API Reference: api.md
20+
- Command Line Interface: cli.md
2021
- Meta:
2122
- Contributor Guide: contributing.md
2223
- Changelog: changelog.md

docs/src/cli.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CLI Reference
1+
# Command Line Interface
22

33
python-re3data.
44

@@ -14,3 +14,56 @@ $ re3data [OPTIONS] COMMAND [ARGS]...
1414
* `--install-completion`: Install completion for the current shell.
1515
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
1616
* `--help`: Show this message and exit.
17+
18+
**Commands**:
19+
20+
* `repository`
21+
22+
## `re3data repository`
23+
24+
**Usage**:
25+
26+
```console
27+
$ re3data repository [OPTIONS] COMMAND [ARGS]...
28+
```
29+
30+
**Options**:
31+
32+
* `--help`: Show this message and exit.
33+
34+
**Commands**:
35+
36+
* `get`: Get the metadata of a specific repository.
37+
* `list`: List the metadata of all repositories in...
38+
39+
### `re3data repository get`
40+
41+
Get the metadata of a specific repository.
42+
43+
**Usage**:
44+
45+
```console
46+
$ re3data repository get [OPTIONS] REPOSITORY_ID
47+
```
48+
49+
**Arguments**:
50+
51+
* `REPOSITORY_ID`: [required]
52+
53+
**Options**:
54+
55+
* `--help`: Show this message and exit.
56+
57+
### `re3data repository list`
58+
59+
List the metadata of all repositories in the re3data API.
60+
61+
**Usage**:
62+
63+
```console
64+
$ re3data repository list [OPTIONS]
65+
```
66+
67+
**Options**:
68+
69+
* `--help`: Show this message and exit.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pip-compile-resolver = "uv"
129129
lock-filename = "requirements/{env_name}.txt"
130130

131131
[tool.hatch.envs.docs.scripts]
132-
cli = "typer src/re3data/_cli.py utils docs --name=re3data --title='CLI Reference' --output docs/src/cli.md"
132+
cli = "typer src/re3data/_cli.py utils docs --name=re3data --title='Command Line Interface' --output docs/src/cli.md"
133133
build = "mkdocs build --config-file=docs/mkdocs.yml"
134134
serve = "mkdocs serve --verbose --config-file=docs/mkdocs.yml"
135135
deploy = "mike deploy --push --update-aliases $(hatch version) latest --config-file=docs/mkdocs.yml"

0 commit comments

Comments
 (0)