Commit b8a3602
authored
* fix(ci): make the markdownlint job lint files again (#4526)
The globs were written inside a YAML block scalar, so the quotes around
`'**/*.md'` were passed through to markdownlint-cli2 verbatim. It looked
for paths beginning with a literal quote, matched nothing, and exited 0.
The job has reported success without reading a file since it was added.
Unquoting the glob alone turns the job red: it then finds 116 files with
277 violations. So this also clears every one of them.
Most were mechanical (blank lines around fences, lists and headings) and
came from markdownlint's own --fix. Three groups needed judgment:
- Identifiers that markdown reads as emphasis. `__init__.py`,
`__SPECKIT_COMMAND_*__` and friends were being rendered as bold in
CHANGELOG.md. Running --fix over them rewrites the text itself
(`**init**.py`), so they are wrapped in code spans instead, matching how
the same tokens are already written elsewhere in the repo.
- Fenced blocks without a language. Tagged from their actual content:
`markdown` for the blocks that are markdown output, `text` for
directory trees, commit messages and log excerpts.
- The pillar headings on the docs landing page. They must stay at h3
because main.css styles `.pillar-card h3`, so MD001 is suppressed there
with a comment saying why. It is the only suppression added.
No prose changed. Verified against markdownlint-cli2 0.23.2, the version
the pinned action actually runs.
Assisted-by: Claude (model: claude-opus-5, autonomous)
* fix(ci): fail the glob check per glob, not on the total
The check summed matches across every glob and only failed at zero, so one
stale entry among several still passed while leaving that part of the
documentation unlinted -- the same silent narrowing as #4526, just partial.
Each glob is now checked on its own and every empty one is reported.
The unmatched globs are collected in an array rather than a string: nullglob
is on for this step, so re-expanding an unquoted list of globs that match
nothing erases the list before it can be printed.
* fix(ci): exclude CHANGELOG.md from the documentation allowlist
Per review: the changelog is generated from git commit messages by the
release workflow, so linting it is pointless and the edits this branch made
to it were worse than pointless — they rewrote commit-message text that the
next release regenerates, making the file diverge from the commits it is
built from.
Dropped CHANGELOG.md from DOC_GLOBS and reverted the file to its base state.
The allowlist now matches 56 files, 0 errors, and the guard step agrees.
* fix(docs): drop the MD001 suppression that is no longer needed
The disable was added when the pillar cards jumped from the page h1
straight to h3. Main's rewrite put `## Choose your process` above them,
so the sequence is h1 -> h2 -> h3 and MD001 does not fire.
Linting docs/index.md at the merge base reports 0 issues without the
disable, so the comment described a problem that no longer exists.
That leaves docs/index.md unchanged by this branch.
* test(ci): guard the markdownlint allowlist against the #4526 failure mode
The in-workflow guard lives in the file it protects, so a rewrite of
lint.yml could drop both together. These assert the same invariants from
the test suite: no glob is quoted, every glob matches a file, and the
action's globs input still reads DOC_GLOBS.
1 parent ac53c9f commit b8a3602
15 files changed
Lines changed: 131 additions & 34 deletions
File tree
- .github/workflows
- docs
- community
- install
- reference
- integrations
- presets
- tests
- workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
13 | 27 | | |
14 | 28 | | |
15 | 29 | | |
| |||
36 | 50 | | |
37 | 51 | | |
38 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
39 | 89 | | |
40 | 90 | | |
41 | 91 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 92 | + | |
45 | 93 | | |
46 | 94 | | |
47 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| 223 | + | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
| |||
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| 271 | + | |
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments