Commit 64e49d7
authored
* docs: add CLI reference page and remove CLI from API docs (#704)
Remove cli/ from the generated API reference (it's a user tool, not a
public Python API) and replace it with an auto-generated CLI Reference
page under docs/docs/reference/cli.md.
The new generate_cli_reference.py script introspects the Typer app at
build time, extracting flags, types, defaults, help strings, and
structured docstring sections (Prerequisites, Output, Examples, See
Also). Strict mode (--strict) fails the build if any command has
incomplete documentation.
- Remove "cli" from PACKAGES in generate-ast.py
- Remove cli from audit_coverage.py discovery and quality scope
- Add generate_cli_reference.py with strict validation
- Integrate into build.py (Step 4, --strict) and CI workflow
- Add 21 unit tests for the generator (test_cli_reference.py)
- Wire docs-autogen tests into docs-publish CI workflow
- Enrich all CLI command docstrings with Prerequisites, Output,
Examples, and See Also sections
- Add cross-links from 5 guide pages back to CLI reference
- Add 12 Mintlify redirects for old /api/cli/* URLs
- Remove dead m decompose glossary entry
- Add CLI docstring convention to CONTRIBUTING.md and AGENTS.md
- Add clidocs/clidocs-clean poe tasks
* fix(ci): scope docs-publish test step to CLI reference tests only
The full tooling/docs-autogen/ test suite has 13 pre-existing failures
in test_validate.py, test_escape_mdx.py, and test_anchor_collisions.py.
Scope the CI step to test_cli_reference.py to avoid blocking on
unrelated failures.
* fix: address code review findings
- Fix wrong filename in module docstring (hyphens -> underscores)
- Validate before writing file (fail early with --strict)
- Add missing redirects for serve/ and fix/ old API pages
- Add Examples: section to CONTRIBUTING.md template and rules
* fix: address remaining code review findings
- Convert See Also link text from URL slugs to human-readable titles
with proper capitalisation (3/3 reviewer consensus)
- Remove dead discover_cli_commands() from audit_coverage.py
- Switch flag formatting from double to single backticks
- Filter --help param from synopsis, options tables, and strict validator
- Apply _rst_to_md to root intro text
- Simplify test_rst_backticks test now double backticks are gone
* docs: update docs-autogen README for CLI reference pipeline
- Add clidocs/clidocs-clean to quick start
- Add Step 4 (generate_cli_reference.py) to pipeline overview
- Add generate_cli_reference.py and test file to file structure
- Remove cli/ from generated docs tree, add reference/cli.md
- Remove stale Makefile shim reference
- Fix make -> poe reference in validate step
* docs: add prerequisites section to docs-autogen README
Document the install command (matching CI) and Node.js requirement
for local doc builds and previews.
* fix: add friendly error when CLI extras are missing
generate_cli_reference.py now catches ImportError during CLI app import
and prints the required install command instead of a raw traceback.
* docs: fix docs-autogen README gaps for CLI reference pipeline
- Correct apidocs intro: build.py now runs 4 steps, not 2
- Document --strict distinction: clidocs is lenient, apidocs pipeline
is always strict; add standalone --strict invocation example
- Add CLI reference generator configuration section (--strict,
--docs-root, --source-dir, --skip-cli-reference)
- Document that full clean requires apidocs-clean + clidocs-clean
- Add test_cli_reference.py to Development examples
- Replace stale `make docs` references with `uv run poe apidocs`
* docs: fix pipeline diagram and AGENTS.md traceability for CLI reference
- Pipeline Overview: replace validate.py (step 3) with the actual
build.py step 3 (generate-ast.py --nav-only); move validate.py to
an "optional tools" section below the diagram
- AGENTS.md: add test command and link to docs-autogen README so the
full local testing workflow is traceable from the agent guide
* docs: add node version workaround and API 404 to troubleshooting
- Prerequisites: document node@22 PATH override for systems running
node v25+ (mintlify dev rejects non-LTS versions)
- Troubleshooting: add entries for node version error and API
Reference tab 404 (generated artefacts must be built first)
* docs: simplify node version requirement and troubleshooting entries
1 parent cb1a4b9 commit 64e49d7
24 files changed
Lines changed: 1170 additions & 99 deletions
File tree
- .github/workflows
- cli
- alora
- decompose
- eval
- fix
- serve
- docs/docs
- advanced
- evaluation-and-observability
- guide
- how-to
- integrations
- tooling/docs-autogen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
461 | 462 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
35 | 53 | | |
36 | 54 | | |
37 | 55 | | |
| |||
79 | 97 | | |
80 | 98 | | |
81 | 99 | | |
82 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
83 | 117 | | |
84 | 118 | | |
85 | 119 | | |
| |||
140 | 174 | | |
141 | 175 | | |
142 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
143 | 195 | | |
144 | 196 | | |
145 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
245 | 261 | | |
246 | 262 | | |
247 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
20 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
21 | 38 | | |
22 | | - | |
23 | 39 | | |
24 | 40 | | |
25 | 41 | | |
| |||
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
32 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
33 | 53 | | |
34 | 54 | | |
35 | 55 | | |
36 | 56 | | |
37 | 57 | | |
38 | 58 | | |
39 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
40 | 76 | | |
41 | 77 | | |
42 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
| |||
83 | 97 | | |
84 | 98 | | |
85 | 99 | | |
86 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
87 | 114 | | |
88 | 115 | | |
89 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
225 | 245 | | |
226 | 246 | | |
227 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
| 162 | + | |
0 commit comments