summaryrefslogtreecommitdiff
path: root/website/scripts/docs-snapshot.mjs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-08-04 03:58:48 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-08-04 03:59:22 +0300
commitcffc6c4b50178d404fbb939346dab7a33e5ed8d4 (patch)
tree7ca1cdfd9b669ca1bbd23d0c800c4a1047913e99 /website/scripts/docs-snapshot.mjs
parentb12da23918ff94099e7fcedd7db79f3d2fa8fa6f (diff)
fix(docs): allow corrections to published versions
refs #916
Diffstat (limited to 'website/scripts/docs-snapshot.mjs')
-rw-r--r--website/scripts/docs-snapshot.mjs4
1 files changed, 2 insertions, 2 deletions
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 })) {