docs: align published presentation and verify horizon source traceability
Build and publish Eldorado documentation / build (pull_request) Successful in 48s
Build and publish Eldorado documentation / build (pull_request) Successful in 48s
This commit is contained in:
1 parent
d8feeba025
commit
f23bf1c5f4
7 files changed
+60
-28
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import {readFileSync} from 'node:fs';
|
||||
import {createHash} from 'node:crypto';
|
||||
import {execFileSync} from 'node:child_process';
|
||||
import {slides} from '../presentations/less-prompting-more-shipping/slides.mjs';
|
||||
const read=p=>readFileSync(p,'utf8');
|
||||
@@ -24,4 +25,11 @@ test('build emits local pinned Reveal assets, stable IDs and no production CDN',
|
||||
assert.match(read(`${dir}/runtime.js`),/hash:true/);
|
||||
assert.equal(JSON.parse(read('package.json')).dependencies['reveal.js'],'5.2.1');
|
||||
assert.match(read('src/pages/index.tsx'),/Open presentation/);
|
||||
const map=JSON.parse(read(`${dir}/source-map.json`));
|
||||
assert.equal(map.version,'1.0.1');
|
||||
assert.match(map.strategyRevision,/same-build/);
|
||||
for(const doc of map.sourceDocuments) assert.equal(doc.sha256,createHash('sha256').update(read(doc.path)).digest('hex'),doc.path);
|
||||
for(const id of ['target-operating-model','roadmap','six-months-target','six-months-roadmap','stage-02-autonomous-agent']) assert(map.sourceDocuments.some(d=>d.id===id),id);
|
||||
assert(slides.find(s=>s.id==='beyond').notes.includes('long-term destination remains human-directed'));
|
||||
for(const id of ['months-one-two','months-three-four','months-five-six','capacity','experiment','inconclusive','stop']) assert(slides.find(s=>s.id===id).sources.includes('six-months-roadmap'),id);
|
||||
});
|
||||
Reference in new issue
Block a user