diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-04 03:58:48 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-04 03:59:22 +0300 |
| commit | cffc6c4b50178d404fbb939346dab7a33e5ed8d4 (patch) | |
| tree | 7ca1cdfd9b669ca1bbd23d0c800c4a1047913e99 /website/scripts/check-built-docs.mjs | |
| parent | b12da23918ff94099e7fcedd7db79f3d2fa8fa6f (diff) | |
fix(docs): allow corrections to published versions
refs #916
Diffstat (limited to 'website/scripts/check-built-docs.mjs')
| -rw-r--r-- | website/scripts/check-built-docs.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/website/scripts/check-built-docs.mjs b/website/scripts/check-built-docs.mjs index 8841bf74..66e904e4 100644 --- a/website/scripts/check-built-docs.mjs +++ b/website/scripts/check-built-docs.mjs @@ -48,7 +48,7 @@ assertIncludes(preview, 'name="robots" content="noindex, nofollow"'); assertIncludes(archived, `data-pagefind-filter="version[content]" content="${versions.current}"`); assertIncludes(archived, 'name="robots" content="noindex, nofollow"'); if (archived.includes(`This page documents Herdr ${versions.current}`)) { - throw new Error('the current immutable snapshot must not be labeled as outdated'); + throw new Error('the current documentation version must not be labeled as outdated'); } const versionSelect = stable.match(/<select[^>]*aria-label="Documentation version"[^>]*>([\s\S]*?)<\/select>/)?.[1]; if (!versionSelect) throw new Error('stable docs are missing the version selector'); @@ -68,7 +68,7 @@ if (previous) { const sitemap = await readFile(resolve(distDir, 'sitemap-0.xml'), 'utf8'); assertIncludes(sitemap, 'https://herdr.dev/docs/'); if (nonCanonicalDocsUrl.test(sitemap)) { - throw new Error('preview or immutable documentation URLs must not appear in the sitemap'); + throw new Error('preview or versioned documentation URLs must not appear in the sitemap'); } const build = await inspectFiles(distDir); |
