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
2 changes: 1 addition & 1 deletion .markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@

// MD048/code-fence-style - Code fence style
"MD048": {
// Code fence syle
// Code fence style
"style": "consistent"
}
}
2 changes: 2 additions & 0 deletions build/tasks/format/format-yaml.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const yamlFiles = await glob([
'**/*.yaml',
'!_site/',
'!node_modules/',
// Written by pnpm, not by hand.
'!pnpm-lock.yaml',
]);

let exitCode = 0;
Expand Down
13 changes: 8 additions & 5 deletions build/tasks/verify/verify-spelling.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ import { exec, glob, matched, quote } from '@openinf/portal/build/utils';
// Comments and template prose are read as often as the documentation is, and
// cspell's `en` dictionary is the American one, so this is also what holds the
// project to American spelling: a British variant is an unknown word to it.
// Named once rather than written twice. The glob and the complaint about it
// matching nothing were separate copies of this string, and they had already
// drifted apart by an extension.
const SPELLCHECKED =
'**/*.{md,html,liquid,scss,mts,mjs,json,json5,jsonc,yml,yaml,sh}';

const files = await glob([
'**/*.{md,html,liquid,scss,mts,mjs,json,yml,yaml,sh}',
SPELLCHECKED,
'!node_modules/',
'!_site/',
'!.pnpm-store/',
Expand All @@ -30,9 +36,6 @@ const files = await glob([
'!collections/_pages/vision.md',
]);

process.exitCode = matched(
files,
'**/*.{md,html,liquid,scss,mts,mjs,json,yml,yaml,sh}'
)
process.exitCode = matched(files, SPELLCHECKED)
? await exec(`cspell lint ${quote(files)}`)
: 1;
2 changes: 2 additions & 0 deletions build/tasks/verify/verify-yaml.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const yamlFiles = await glob([
'**/*.yaml',
'!_site/',
'!node_modules/',
// Written by pnpm, not by hand.
'!pnpm-lock.yaml',
]);

let exitCode = 0;
Expand Down
Loading