Skip to content

Commit c1f3905

Browse files
authored
docs(api,cli) Link API refs and clean CLI docs (#558)
API reference pages now keep module names out of headings so their first prose mentions can carry Sphinx roles. The PrivatePath intro now links to its class reference. The CLI reference no longer renders aggregate parser examples that duplicate per-command anchors, so the docs build no longer reports duplicate-label warnings. Legacy shell completion snippets now show exact startup-file lines without extra blank space. Verification: - rm -rf docs/_build; uv run ruff check . --fix --show-fixes; uv run ruff format .; uv run mypy .; uv run py.test --reruns 0 -vvv; just build-docs;
2 parents 0cdba9c + 5fb15de commit c1f3905

22 files changed

Lines changed: 23 additions & 25 deletions

docs/api/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Config - `vcspull.config`
1+
# Config
22

33
{mod}`vcspull.config` finds, loads, and filters vcspull configuration from
44
Python — the same functions the CLI uses to locate configuration files,

docs/api/exc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Exceptions - `vcspull.exc`
1+
# Exceptions
22

33
When configuration loading or a worktree operation fails, vcspull raises an
44
exception from {mod}`vcspull.exc`. Catch

docs/api/log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Logging - `vcspull.log`
1+
# Logging
22

33
{mod}`vcspull.log` holds the logging setup for the vcspull CLI — the
44
formatters and colorized output behind its console messages.

docs/api/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Typings - `vcspull.types`
1+
# Typings
22

33
{mod}`vcspull.types` defines the typed dictionaries and aliases that
44
describe configuration data on its way from file to sync — the annotations

docs/api/util.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Utilities - `vcspull.util`
1+
# Utilities
22

33
{mod}`vcspull.util` collects the small helpers shared across vcspull's
44
modules — configuration-directory lookup and recursive dictionary merging.

docs/api/validator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Validation - `vcspull.validator`
1+
# Validation
22

33
{mod}`vcspull.validator` checks that a parsed configuration has the shape
44
vcspull expects — workspace roots mapping to repository entries — before the

docs/cli/completion.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ vcspull 0.9 to 1.14 use [click](https://click.palletsprojects.com)'s completion:
8686
_~/.bashrc_:
8787

8888
```bash
89-
9089
eval "$(_VCSPULL_COMPLETE=bash_source vcspull)"
91-
9290
```
9391

9492
:::
@@ -98,9 +96,7 @@ eval "$(_VCSPULL_COMPLETE=bash_source vcspull)"
9896
_~/.zshrc_:
9997

10098
```zsh
101-
10299
eval "$(_VCSPULL_COMPLETE=zsh_source vcspull)"
103-
104100
```
105101

106102
:::

docs/cli/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ completion
110110
:func: create_parser
111111
:prog: vcspull
112112
:nosubcommands:
113+
:no-description:
113114
114115
subparser_name : @replace
115116
See :ref:`cli-sync`, :ref:`cli-add`, :ref:`cli-import`, :ref:`cli-discover`, :ref:`cli-list`, :ref:`cli-search`, :ref:`cli-status`, :ref:`cli-worktree`, :ref:`cli-fmt`, :ref:`cli-migrate`

docs/internals/api/cli/add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vcspull add - `vcspull.cli.add`
1+
# Add command internals
22

33
{mod}`vcspull.cli.add` is the implementation behind
44
{ref}`vcspull add <cli-add>` — it resolves a checkout on disk into a

docs/internals/api/cli/discover.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vcspull discover - `vcspull.cli.discover`
1+
# Discover command internals
22

33
{mod}`vcspull.cli.discover` is the implementation behind
44
{ref}`vcspull discover <cli-discover>` — it scans a directory tree for

0 commit comments

Comments
 (0)