This commit is contained in:
10 files changed
+24
-24
No files matched your search
@@ -11,7 +11,7 @@
|
||||
* dark (`body.quarto-dark`, or Bootstrap's `data-bs-theme="dark"`); the paper and ink follow the page's own.
|
||||
*
|
||||
* It also copies the course's stylesheets for the machine views (course/*.css), writes pplus-hw.css from
|
||||
* styles/course/bridge.css, and copies pplus-core's KDE syntax for Mojo (core/syntax/mojo.xml, which core's corpus
|
||||
* styles/course/bridge.css, and copies pplus-core's KDE syntax for Mojo (core/library/syntax/mojo.xml, which core's corpus
|
||||
* pipeline writes) to syntax/mojo.xml, for the listings Pandoc highlights.
|
||||
*
|
||||
* node scripts/quarto-css.mjs --check exit 1 if a file is not what this would write
|
||||
@@ -38,7 +38,7 @@ for (const id of ['count-base', 'count-base-proved', 'match-off-by-one', 'five-b
|
||||
const files = Object.fromEntries(Object.entries(p.sources).filter(([, v]) => typeof v === 'string' && v.trim()));
|
||||
for (const lang of Object.keys(files)) samples.push({ files, lang, call: p.call ?? null, setup: p.setup, machine: p.machine });
|
||||
}
|
||||
samples.push({ files: { mojo: fs.readFileSync(path.join(ROOT, 'core/mojo/stress/lifecycle-moves.mojo'), 'utf8') }, lang: 'mojo' });
|
||||
samples.push({ files: { mojo: fs.readFileSync(path.join(ROOT, 'core/library/mojo/stress/lifecycle-moves.mojo'), 'utf8') }, lang: 'mojo' });
|
||||
const used = new Set();
|
||||
for (const s of samples) for (const view of STATIC_VIEWS.filter((v) => v !== 'hw')) {
|
||||
let html = '';
|
||||
@@ -148,7 +148,7 @@ outputs.push([path.join(EXT, 'pplus-hw.css'), `/* pplus-hw.css: GENERATED by \`p
|
||||
page already has the colors and fonts those files read (--bs-body-bg, --bs-body-color, body.quarto-dark). */
|
||||
${afterRoot}`]);
|
||||
|
||||
outputs.push([path.join(EXT, 'syntax', 'mojo.xml'), fs.readFileSync(path.join(ROOT, 'core/syntax/mojo.xml'), 'utf8')]);
|
||||
outputs.push([path.join(EXT, 'syntax', 'mojo.xml'), fs.readFileSync(path.join(ROOT, 'core/library/syntax/mojo.xml'), 'utf8')]);
|
||||
|
||||
if (process.argv.includes('--check')) {
|
||||
const stale = outputs.filter(([file, want]) => !fs.existsSync(file) || fs.readFileSync(file, 'utf8') !== want).map(([file]) => path.relative(ROOT, file));
|
||||
|
||||
Reference in new issue
Block a user