Skip to content

Commit ca17beb

Browse files
committed
chore(ci): unblock PR #76 CI (prettier, markdownlint, docs validator)
Three pre-existing CI failures on main were gating PR #76. Fixing in this branch rather than a separate PR per reviewer direction. prettier - Run `prettier --write` on .claude-plugin/marketplace.json and website/astro.config.mjs to restore formatting consistency. markdownlint - README.md: wrap the `contact@bmadcode.com` bare URL as <contact@bmadcode.com> (MD034/no-bare-urls). docs:validate-links - tools/validate-doc-links.cjs: tighten LINK_REGEX with a (?!\w+://) negative lookahead so external URLs ending in .md (e.g. https://github.com/.../CONTRIBUTING.md) are no longer incorrectly classified as local doc paths. The validator only knows how to resolve site-relative and bare .md paths; protocol URLs should be ignored entirely. Previously, `distribute-your-module.md`'s valid cross-repo marketplace CONTRIBUTING.md link was flagged as "File not found anywhere" and failing CI. All three checks pass locally (npm run format:check / lint:md / docs:validate-links).
1 parent 02152d4 commit ca17beb

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
"author": {
1717
"name": "Brian (BMad) Madison"
1818
},
19-
"skills": [
20-
"./skills/bmad-agent-builder",
21-
"./skills/bmad-bmb-setup",
22-
"./skills/bmad-module-builder",
23-
"./skills/bmad-workflow-builder"
24-
]
19+
"skills": ["./skills/bmad-agent-builder", "./skills/bmad-bmb-setup", "./skills/bmad-module-builder", "./skills/bmad-workflow-builder"]
2520
},
2621
{
2722
"name": "sample-plugins",
@@ -49,9 +44,7 @@
4944
"author": {
5045
"name": "Brian (BMad) Madison"
5146
},
52-
"skills": [
53-
"./samples/bmad-agent-dream-weaver"
54-
]
47+
"skills": ["./samples/bmad-agent-dream-weaver"]
5548
}
5649
]
5750
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ BMad Builder lets you create:
6262

6363
## Support BMad
6464

65-
BMad is free for everyone and always will be. Star this repo, [buy me a coffee](https://buymeacoffee.com/bmad), or email contact@bmadcode.com for corporate sponsorship.
65+
BMad is free for everyone and always will be. Star this repo, [buy me a coffee](https://buymeacoffee.com/bmad), or email <contact@bmadcode.com> for corporate sponsorship.
6666

6767
## License
6868

tools/validate-doc-links.cjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ const DOCS_ROOT = path.resolve(__dirname, '../docs');
2222
const DRY_RUN = !process.argv.includes('--write');
2323

2424
// Regex to match markdown links with site-relative paths or bare .md references
25-
const LINK_REGEX = /\[([^\]]*)\]\(((?:\.{1,2}\/|\/)[^)]+|[\w][^)\s]*\.md(?:[?#][^)]*)?)\)/g;
25+
// Matches markdown links whose target is either a relative/site-relative path
26+
// (starts with ./ ../ or /) or a bare .md reference. The negative lookahead
27+
// (?!\w+:\/\/) keeps external URLs (https://..., mailto:..., ftp:...) out of
28+
// the bare-.md alternative so a cross-repo link to a README.md isn't treated
29+
// as a local docs path.
30+
const LINK_REGEX = /\[([^\]]*)\]\(((?:\.{1,2}\/|\/)[^)]+|(?!\w+:\/\/)[\w][^)\s]*\.md(?:[?#][^)]*)?)\)/g;
2631

2732
// File extensions that are static assets, not markdown docs
2833
const STATIC_ASSET_EXTENSIONS = ['.zip', '.txt', '.pdf', '.png', '.jpg', '.jpeg', '.gif', '.svg', '.webp', '.ico'];

website/astro.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ export default defineConfig({
111111
{ label: 'BMad Method', link: 'https://docs.bmad-method.org/', attrs: { target: '_blank' } },
112112
{ label: 'Creative Intelligence Suite', link: 'https://cis-docs.bmad-method.org/', attrs: { target: '_blank' } },
113113
{ label: 'Game Dev Studio', link: 'https://game-dev-studio-docs.bmad-method.org/', attrs: { target: '_blank' } },
114-
{ label: 'Test Architect (TEA)', link: 'https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/', attrs: { target: '_blank' } },
114+
{
115+
label: 'Test Architect (TEA)',
116+
link: 'https://bmad-code-org.github.io/bmad-method-test-architecture-enterprise/',
117+
attrs: { target: '_blank' },
118+
},
115119
],
116120
},
117121
],

0 commit comments

Comments
 (0)