Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions scripts/__tests__/sync-org-docs.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import {
slugify,
listOrgRepos,
checkListing,
SKIP_DOCS_DIR,
DOCS_SUBDIR,
PER_PAGE,
DEFAULT_PAGE_SIZE,
} from '../sync-org-docs.mjs';
Expand Down Expand Up @@ -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, []);
Expand Down
2 changes: 2 additions & 0 deletions scripts/sync-org-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ export {
orgPublicRepoCount,
checkListing,
HAND_AUTHORED,
SKIP_DOCS_DIR,
DOCS_SUBDIR,
PER_PAGE,
DEFAULT_PAGE_SIZE,
};
Expand Down