Commit 419b5bb
committed
feat(docs): auto-generate driftable documentation sections
Eliminate documentation drift by generating content from source code:
- configuration.md: env var reference generated from new centralized
registry (src/lib/env-registry.ts) using the fragment pattern.
Adds 6 previously undocumented env vars (SENTRY_FORCE_ENV_TOKEN,
SENTRY_OUTPUT_FORMAT, SENTRY_MAX_PAGINATION_PAGES, SENTRY_INIT,
SENTRY_CLI_NO_AUTO_REPAIR, FORCE_COLOR).
- contributing.md: project structure tree generated from Stricli
route tree (was listing 5 command dirs, now correctly shows 15+).
- DEVELOPMENT.md & self-hosted.md: OAuth scopes generated from
exported OAUTH_SCOPES array in oauth.ts (fixes missing team:write).
- README.md: remove driftable commands table, point to docs site.
New infrastructure:
- src/lib/env-registry.ts: centralized env var metadata catalog
- script/generate-docs-sections.ts: marker-based injection for
committed files (GENERATED:START/END named markers)
- generate-command-docs.ts extended to produce configuration.md
- CI check:docs-sections validates markers aren't stale1 parent ec08c24 commit 419b5bb
15 files changed
Lines changed: 777 additions & 308 deletions
File tree
- .github/workflows
- docs/src
- content/docs
- fragments
- script
- src/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | | - | |
134 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
135 | 147 | | |
136 | 148 | | |
137 | 149 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
142 | 154 | | |
143 | | - | |
| 155 | + | |
144 | 156 | | |
145 | 157 | | |
146 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1056 | 1059 | | |
1057 | | - | |
| 1060 | + | |
1058 | 1061 | | |
1059 | 1062 | | |
1060 | 1063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 71 | + | |
89 | 72 | | |
90 | 73 | | |
91 | 74 | | |
| |||
This file was deleted.
0 commit comments