Skip to content

Commit

Permalink
docs: add reference level in navigation (#80)
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
afuetterer authored May 26, 2024
1 parent f3eef8b commit 6a41547
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ watch:

nav:
- Home: index.md
- API Reference: api.md
- CLI Reference: cli.md
- Reference:
- API Reference: api.md
- Command Line Interface: cli.md
- Meta:
- Contributor Guide: contributing.md
- Changelog: changelog.md
Expand Down
55 changes: 54 additions & 1 deletion docs/src/cli.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CLI Reference
# Command Line Interface

python-re3data.

Expand All @@ -14,3 +14,56 @@ $ re3data [OPTIONS] COMMAND [ARGS]...
* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `repository`

## `re3data repository`

**Usage**:

```console
$ re3data repository [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--help`: Show this message and exit.

**Commands**:

* `get`: Get the metadata of a specific repository.
* `list`: List the metadata of all repositories in...

### `re3data repository get`

Get the metadata of a specific repository.

**Usage**:

```console
$ re3data repository get [OPTIONS] REPOSITORY_ID
```

**Arguments**:

* `REPOSITORY_ID`: [required]

**Options**:

* `--help`: Show this message and exit.

### `re3data repository list`

List the metadata of all repositories in the re3data API.

**Usage**:

```console
$ re3data repository list [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pip-compile-resolver = "uv"
lock-filename = "requirements/{env_name}.txt"

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

0 comments on commit 6a41547

Please sign in to comment.