From cffc6c4b50178d404fbb939346dab7a33e5ed8d4 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 4 Aug 2026 03:58:48 +0300 Subject: fix(docs): allow corrections to published versions refs #916 --- website/scripts/docs-snapshot.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'website/scripts/docs-snapshot.mjs') diff --git a/website/scripts/docs-snapshot.mjs b/website/scripts/docs-snapshot.mjs index b85557a1..e9eaf92c 100644 --- a/website/scripts/docs-snapshot.mjs +++ b/website/scripts/docs-snapshot.mjs @@ -73,7 +73,7 @@ export async function compareGitTree(git, ref, sourceRoot, snapshotRoot) { assertRelativePath(relativePath, entry.path); expected.set(relativePath, entry); } - const actualPaths = await listSnapshotPaths(snapshotRoot); + const actualPaths = await listDocumentationPaths(snapshotRoot); const expectedPaths = [...expected.keys()].sort(); if (JSON.stringify(actualPaths) !== JSON.stringify(expectedPaths)) { throw new Error(`${snapshotRoot} file list differs from ${ref}:${sourceRoot}`); @@ -89,7 +89,7 @@ export async function compareGitTree(git, ref, sourceRoot, snapshotRoot) { } } -async function listSnapshotPaths(root) { +export async function listDocumentationPaths(root) { const paths = []; async function walk(directory) { for (const entry of await readdir(directory, { withFileTypes: true })) { -- cgit v1.2.3