feat: add evidence-led Reveal presentation and homepage invitation
This commit is contained in:
1 parent
fcaa84f3bf
commit
9a7766b323
12 files changed
+271
-3
No files matched your search
@@ -87,6 +87,12 @@ export async function verifySidebarCoverage() {
|
||||
assert(body.includes('window.location.replace') && body.includes('name="robots" content="noindex"') && !body.includes('<article'), 'Metric alias must remain a non-indexed redirect');
|
||||
assert.equal(body, readFileSync(join('static',file),'utf8'));
|
||||
reason = 'Legacy measurement-contracts hash-aware redirect to canonical Measurement pages';
|
||||
} else if (file === 'presentations/less-prompting-more-shipping/index.html') {
|
||||
const body = readFileSync(join('build',file),'utf8');
|
||||
assert.equal(body, readFileSync(join('static',file),'utf8'));
|
||||
assert(body.includes('class="reveal deck"') && body.includes('class="notes"'));
|
||||
assert(readFileSync('build/index.html','utf8').includes('./presentations/less-prompting-more-shipping/'));
|
||||
reason = 'Reveal presentation linked from the homepage, not a competing documentation page';
|
||||
} else if (file.startsWith('diagrams/') && readFileSync(join('build',file),'utf8').includes('<svg')) {
|
||||
assert.equal(readFileSync(join('build',file),'utf8'), readFileSync(join('static',file),'utf8'), `Viewer must match generated static asset: ${file}`);
|
||||
reason = 'Standalone diagram viewer asset, not documentation';
|
||||
|
||||
Reference in new issue
Block a user