diff --git a/scripts/__tests__/sync-org-docs.test.mjs b/scripts/__tests__/sync-org-docs.test.mjs index e6e79a5d..b8b685c0 100644 --- a/scripts/__tests__/sync-org-docs.test.mjs +++ b/scripts/__tests__/sync-org-docs.test.mjs @@ -33,6 +33,8 @@ import { slugify, listOrgRepos, checkListing, + SKIP_DOCS_DIR, + DOCS_SUBDIR, PER_PAGE, DEFAULT_PAGE_SIZE, } from '../sync-org-docs.mjs'; @@ -544,6 +546,18 @@ test('an unpaginated gh yields only page 1 — the regression this guards', () = console.log('\ncheckListing'); +// ── tunaOS source mapping ──────────────────────────────────────────────────── +// tunaOS removed its old docs/book/src mdBook tree. The site keeps the +// docs/tunaos pages hand-authored, so the sync must not silently revive the +// removed source mapping or overwrite that tree from tunaOS/docs. + +console.log('\ntunaOS source mapping'); + +test('does not map tunaOS to the removed mdBook path', () => { + assert.equal(DOCS_SUBDIR.tunaOS, undefined); + assert.ok(SKIP_DOCS_DIR.has('tunaOS')); +}); + test('accepts a listing that is longer than the org public count', () => { const {fatal, warnings} = checkListing(137, 130); assert.deepEqual(fatal, []); diff --git a/scripts/sync-org-docs.mjs b/scripts/sync-org-docs.mjs index 8621e4dc..93e1c599 100644 --- a/scripts/sync-org-docs.mjs +++ b/scripts/sync-org-docs.mjs @@ -563,6 +563,8 @@ export { orgPublicRepoCount, checkListing, HAND_AUTHORED, + SKIP_DOCS_DIR, + DOCS_SUBDIR, PER_PAGE, DEFAULT_PAGE_SIZE, };