Commit 1d9ed02
committed
fix(build): update synopsis extraction regex to handle language identifiers
Fix the extract_synopsis() regex in build-website.py to properly capture
synopsis content when code blocks have language specifiers (e.g., ```text).
The previous regex captured the language identifier instead of the actual
synopsis line. The new regex skips optional language identifiers and captures
the first content line.
This fixes the incorrect 'text' placeholder values for security plugin commands
in docs/data.json.
Fixes:
- image-grades synopsis: now '/security:image-grades <config.yaml> [--grade <grades>] [--email]'
- set-image-grade-tool-path synopsis: now '/security:set-image-grade-tool-path <path>'
Resolves CodeRabbit critical issue in docs/data.json.1 parent 4ebcce3 commit 1d9ed02
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments