Skip to content

Commit 6d485be

Browse files
committed
docs(ui): skip the generated component reference in the role-word scan, beside the other generated trees
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwMyAnTNeas3ANYhyi
1 parent e70b0af commit 6d485be

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎scripts/check-role-word.mjs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const SKIP_DIRS = new Set(['node_modules', '.git', 'dist']);
127127
// justifies the entry above is what decides it rather than weighing against it:
128128
// the reserved word emitted into a page by its generator is a REAL finding whose
129129
// remedy is that generator. Naming the generated tree is how the gate is told
130-
// where to send such a finding, and exactly two trees under these roots have a
130+
// where to send such a finding, and exactly three trees under these roots have a
131131
// fix site this gate cannot otherwise reach:
132132
//
133133
// content/docs/references/ generated from spec by
@@ -138,6 +138,11 @@ const SKIP_DIRS = new Set(['node_modules', '.git', 'dist']);
138138
// `gen:upgrade-guide` from the ADR-0087
139139
// conversion and migration registries; the
140140
// fix site is the registry `.ts`
141+
// content/docs/ui/components/ the component reference, rendered whole
142+
// from `sdui.manifest.json` by
143+
// scripts/gen-sdui-reference.mjs; the fix
144+
// site is the input description in the
145+
// component's registration under `ui/`
141146
//
142147
// The second tree is also UNTRACKED: gitignored, written on demand by the
143148
// `@objectstack/docs` build, never committed, so CI's checkout never holds it.
@@ -157,7 +162,7 @@ const SKIP_DIRS = new Set(['node_modules', '.git', 'dist']);
157162
// scripts/regen-artifacts.mjs — the one register of untracked generator output —
158163
// and runs this gate as a child process over a fixture page inside each skipped
159164
// tree, with the same page outside it as the control.
160-
const SKIP_SUBTREES = new Set(['content/docs/references', 'content/docs/protocol-upgrade']);
165+
const SKIP_SUBTREES = new Set(['content/docs/references', 'content/docs/protocol-upgrade', 'content/docs/ui/components']);
161166
const EXTENSIONS = new Set(['.mdx', '.md']);
162167
const BASELINE_PATH = 'scripts/role-word-baseline.json';
163168
const WORD = /\brole(?:s)?\b/gi;

0 commit comments

Comments
 (0)