Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/docs-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ jobs:
- name: Verify current machine-readable documentation
working-directory: docs/site
run: npm run check:llms:built
env:
DOCS_DIST_DIR: ${{ github.workspace }}/docs/site/dist/dev
Comment thread
jeremi marked this conversation as resolved.
DOCS_PUBLIC_BASE: /dev/
Comment thread
jeremi marked this conversation as resolved.

- name: Verify assembled documentation tree
working-directory: docs/site
Expand Down
8 changes: 8 additions & 0 deletions docs/site/scripts/check-evidence-links.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,20 @@ test('Pages authenticates an exact release before build and smokes one assembled
const docsBuild = workflow.indexOf('Build protected main at /dev/');
const archiveAssembly = workflow.indexOf('npm run assemble:archives');
const rootStaging = workflow.indexOf('npm run stage:production-docsets');
const llmsCheck = workflow.indexOf('Verify current machine-readable documentation');
const assembledCheck = workflow.indexOf('Verify assembled documentation tree');
const localSmoke = workflow.indexOf('npm run smoke:deployment');
const upload = workflow.indexOf('actions/upload-pages-artifact');
const liveSmoke = workflow.lastIndexOf('smoke-docs-deployment.mjs');
assert.ok(dispatchValidation >= 0);
assert.ok(dispatchValidation < docsBuild);
assert.ok(rootStaging > archiveAssembly);
assert.ok(llmsCheck > rootStaging);
assert.match(
workflow.slice(llmsCheck, assembledCheck),
/DOCS_DIST_DIR: \$\{\{ github\.workspace \}\}\/docs\/site\/dist\/dev/,
);
assert.match(workflow.slice(llmsCheck, assembledCheck), /DOCS_PUBLIC_BASE: \/dev\//);
assert.ok(localSmoke > rootStaging);
assert.ok(upload > localSmoke);
assert.ok(liveSmoke > upload);
Expand Down
4 changes: 2 additions & 2 deletions docs/site/scripts/smoke-docs-deployment.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export async function smokeDocsDeployment({
if (canonicalFromHtml(devHtml) !== `${productionOrigin}/dev/`) {
throw new Error('/dev/ is not canonical at the protected-main mount');
}
if (canonicalFromHtml(versionHtml) !== `${productionOrigin}/`) {
throw new Error(`${versionPath} is not an unchanged root-canonical release copy`);
if (canonicalFromHtml(versionHtml) !== `${productionOrigin}${versionPath}`) {
throw new Error(`${versionPath} is not canonical at the immutable version route`);
}
if (!rootHtml.includes(versionPath)) {
throw new Error(`/ does not expose version navigation to ${versionPath}`);
Expand Down
2 changes: 1 addition & 1 deletion docs/site/scripts/smoke-docs-deployment.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function fixture(overrides = {}) {
],
['/start/quickstart/', html(`${origin}/start/quickstart/`)],
['/dev/', html(`${origin}/dev/`)],
['/v/1.2.3/', html(`${origin}/`)],
['/v/1.2.3/', html(`${origin}/v/1.2.3/`)],
['/pagefind/pagefind.js', Buffer.from('search')],
['/pagefind/pagefind-entry.json', Buffer.from('{}')],
['/sitemap-index.xml', Buffer.from('<sitemapindex/>')],
Expand Down
Loading