You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refresh the rendered docs so readers can move from install to first command, CLI behavior, API detail, and contributor material through direct links and current examples.
- Link rendered docs objects and page references with MyST/Sphinx roles.
- Refresh quickstart, contributor, code-style, release, API, and changelog prose.
- Add the root `just build-docs` entrypoint used by the required docs gate.
Local validation:
`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;`
@@ -41,7 +46,7 @@ g 0.0.10 turns g's documentation into a usable CLI reference and moves the docs
41
46
42
47
`g --version` and `g -V` now print g's installed version instead of forwarding those flags to `git`, `svn`, or `hg`. This gives users a direct way to confirm which wrapper version is on `PATH` while keeping the normal proxy behavior unchanged for VCS commands.
43
48
44
-
The implementation preserves the existing {func}`g.run` test hook: in test mode the version path returns cleanly instead of exiting through `argparse`, so the behavior can be asserted without special subprocess handling.
49
+
The implementation preserves the existing {func}`g.run` test hook: in test mode the version path returns cleanly instead of exiting through {mod}`argparse`, so the behavior can be asserted without special subprocess handling.
45
50
46
51
#### First-party CLI reference page (#46)
47
52
@@ -67,6 +72,16 @@ The API page now uses card-style autodoc signatures and badge styling from `sphi
67
72
- The manual CLI "Usage" section was renamed to "Usage examples" so it no longer collides with the argparse-generated `usage` anchor (#54).
68
73
- Light and dark mode CSS for argparse metadata and header links now handles Furo's automatic theme mode correctly (#46).
69
74
75
+
### Documentation
76
+
77
+
#### Clearer paths through the documentation (#61)
78
+
79
+
The docs now guide readers from install to first command, CLI behavior, or
80
+
contributor material without requiring them to understand g's internals first.
81
+
Command examples are easier to scan one action at a time, and cross-links from
82
+
release notes, API details, and project pages take readers directly to the
83
+
matching reference material.
84
+
70
85
### Development
71
86
72
87
- Root `conftest.py` remains type-checked while the temporary docs-extension mypy path excludes only the extension-local `docs/_ext/conftest.py` case that caused duplicate module discovery (#46).
@@ -149,13 +164,13 @@ g 0.0.5 fixes the main user-facing failure mode outside a repository. Running `g
149
164
150
165
### Fixes
151
166
152
-
#### Running outside a VCS directory no longer raises `AssertionError` (#24)
167
+
#### Running outside a VCS directory no longer raises {exc}`AssertionError` (#24)
153
168
154
169
When no `.git`, `.svn`, or `.hg` marker is found while walking upward from the current directory, g now reports that no VCS was found and returns without trying to spawn a subprocess. The test suite covers the non-repository case directly.
155
170
156
171
### Development
157
172
158
-
The CLI test fixtures were rewritten into typed `NamedTuple` records, and the `G_IS_TEST` environment flag remains the path for asserting subprocess behavior without leaking `Popen` objects into user output (#24).
173
+
The CLI test fixtures were rewritten into typed {class}`typing.NamedTuple` records, and the `G_IS_TEST` environment flag remains the path for asserting subprocess behavior without leaking {class}`subprocess.Popen` objects into user output (#24).
159
174
160
175
## g 0.0.4 (2024-03-24)
161
176
@@ -177,11 +192,11 @@ Poetry moved from `1.7.1` to `1.8.1`, and the CI helper actions were updated to
177
192
178
193
## g 0.0.3 (2023-12-09)
179
194
180
-
g 0.0.3 tightens the development harness around the small CLI wrapper. The release moves more configuration into `pyproject.toml`, strengthens docs and lint expectations, and fixes the visible `Popen` repr that could appear after running `g`.
195
+
g 0.0.3 tightens the development harness around the small CLI wrapper. The release moves more configuration into `pyproject.toml`, strengthens docs and lint expectations, and fixes the visible {class}`subprocess.Popen` repr that could appear after running `g`.
181
196
182
197
### Fixes
183
198
184
-
#### `g` no longer prints a `Popen` representation after commands (#19)
199
+
#### `g` no longer prints a {class}`subprocess.Popen` representation after commands (#19)
185
200
186
201
{func}`g.run` now returns the subprocess only when `G_IS_TEST` is set. Normal CLI usage no longer appends output such as `<Popen: returncode: 1 args: ['git']>` after the delegated VCS command.
0 commit comments