Commit d88e735
authored
docs: auto-generate command reference pages with CI enforcement (#569)
Replace hand-written command doc pages with auto-generated reference sections extracted from Stricli route tree introspection. Fixes pervasive documentation drift and adds CI enforcement.
## What changed
- **New generator**: `script/generate-command-docs.ts` produces reference sections (args, options tables) for all 17 command pages from the live route tree
- **CI check**: `script/check-command-docs.ts` validates freshness, auto-commits on PRs
- **Skill examples**: Replaced fragile regex parsing in `generate-skill.ts` with `marked.lexer()` AST walking for robust example extraction
- **Examples check**: `check-skill.ts` now verifies every reference file has examples
- **Descriptive placeholders**: Fixed 7 commands using generic `args` placeholder, banned it in AGENTS.md
- **Content preserved**: Hand-written examples, sample output, and guides live below `<!-- GENERATED:END -->` markers
## Fixes
- Removes phantom flags (`--include`, `--paginate`, `--channel`, `--force` for init)
- Adds missing flags (`--fresh`, `--fields`, `--cursor`, `--period`, `--spans`) to all pages
- Adds 6 new doc pages: trace, span, sourcemap, repo, trial, schema
- Adds dashboard view/create to shell completion set
- Fixes api.md examples to use relative endpoints (no `/api/0/` prefix)
- Fixes init.md feature name (`replays` → `replay`)
- Fixes log.md jq example (`.data[]` envelope, `.severity` field)
- Fixes event.md to use 32-char hex event IDs1 parent f5e9480 commit d88e735
51 files changed
Lines changed: 2211 additions & 1221 deletions
File tree
- .github/workflows
- docs/src/content/docs/commands
- cli
- plugins/sentry-cli/skills/sentry-cli
- references
- script
- src
- commands
- dashboard
- widget
- event
- log
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
125 | | - | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | | - | |
128 | | - | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
130 | | - | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 12 | + | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 46 | + | |
44 | 47 | | |
45 | | - | |
46 | | - | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 72 | + | |
| 73 | + | |
79 | 74 | | |
80 | 75 | | |
81 | | - | |
| 76 | + | |
82 | 77 | | |
83 | 78 | | |
84 | | - | |
85 | | - | |
| 79 | + | |
86 | 80 | | |
87 | 81 | | |
88 | | - | |
| 82 | + | |
89 | 83 | | |
90 | 84 | | |
91 | | - | |
92 | | - | |
| 85 | + | |
| 86 | + | |
93 | 87 | | |
94 | | - | |
| 88 | + | |
| 89 | + | |
95 | 90 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 91 | + | |
| 92 | + | |
106 | 93 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 94 | + | |
| 95 | + | |
110 | 96 | | |
111 | 97 | | |
112 | | - | |
113 | | - | |
114 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
21 | 54 | | |
22 | 55 | | |
23 | 56 | | |
24 | 57 | | |
25 | 58 | | |
26 | | - | |
| 59 | + | |
27 | 60 | | |
28 | | - | |
| 61 | + | |
29 | 62 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 63 | + | |
36 | 64 | | |
37 | | - | |
| 65 | + | |
38 | 66 | | |
39 | | - | |
| 67 | + | |
40 | 68 | | |
41 | 69 | | |
42 | | - | |
| 70 | + | |
43 | 71 | | |
44 | 72 | | |
45 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
46 | 80 | | |
47 | 81 | | |
48 | | - | |
| 82 | + | |
49 | 83 | | |
50 | 84 | | |
51 | | - | |
| 85 | + | |
52 | 86 | | |
53 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
54 | 90 | | |
55 | | - | |
| 91 | + | |
56 | 92 | | |
57 | 93 | | |
58 | | - | |
| 94 | + | |
59 | 95 | | |
60 | 96 | | |
61 | | - | |
| 97 | + | |
62 | 98 | | |
63 | | - | |
| 99 | + | |
64 | 100 | | |
65 | 101 | | |
66 | 102 | | |
67 | 103 | | |
68 | 104 | | |
69 | | - | |
70 | | - | |
71 | 105 | | |
72 | 106 | | |
73 | 107 | | |
74 | 108 | | |
75 | 109 | | |
76 | 110 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 111 | | |
82 | | - | |
83 | | - | |
| 112 | + | |
| 113 | + | |
84 | 114 | | |
85 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
86 | 118 | | |
87 | 119 | | |
88 | 120 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 121 | + | |
92 | 122 | | |
93 | | - | |
| 123 | + | |
94 | 124 | | |
95 | 125 | | |
96 | 126 | | |
| |||
0 commit comments