diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/assert-content.sh | 10 | ||||
-rwxr-xr-x | scripts/assert-spelling.sh | 2 | ||||
-rw-r--r-- | scripts/spelling/en.txt | 5 | ||||
-rw-r--r-- | scripts/spelling/international.txt | 20 |
4 files changed, 31 insertions, 6 deletions
diff --git a/scripts/assert-content.sh b/scripts/assert-content.sh index e694580..626353c 100755 --- a/scripts/assert-content.sh +++ b/scripts/assert-content.sh @@ -8,7 +8,7 @@ red() { echo -e "${red}${1}${end}"; } ## Constant definitions -jekyll build +jekyll build --future JSON='_site/site.json' LANGS=(en pt fr) @@ -63,6 +63,7 @@ assert-frontmatter() { F="$1" DESIRED_LAYOUT="$2" PREFIX="${3:-}" + EXTENSION="${4:-md}" LANG="$(get-lang "$F")" REF="$(get-ref "$F")" URL="$(get-url "$F")" @@ -90,11 +91,10 @@ assert-frontmatter() { if [[ -n "${PREFIX}" ]]; then DATE="$(get-date "$F" | awk '{print $1}')" URL_BASENAME="$(basename "$(get-url "$F")")" - FILE="${PREFIX}/${DATE}-${URL_BASENAME%.html}.md" + FILE="${PREFIX}/${DATE}-${URL_BASENAME%.html}.${EXTENSION}" [[ -f "${FILE}" ]] || { - red "date/filename mismatch: '${FILE}' does not exist. To fix, run:" - echo " mv '${PREFIX}/${URL_BASENAME%.html}.md' '${FILE}'" + red "date/filename mismatch: '${FILE}' does not exist." exit 1 } fi @@ -125,7 +125,7 @@ done echo Linting slides... >&2 for slide in $(jq -r '.slides[] | @base64' "${JSON}"); do - assert-frontmatter "$slide" 'post' '_slides' + assert-frontmatter "$slide" 'slides' '_slides' 'slides' done echo Asserting unique refs... >&2 diff --git a/scripts/assert-spelling.sh b/scripts/assert-spelling.sh index e7bd3b8..edc56dd 100755 --- a/scripts/assert-spelling.sh +++ b/scripts/assert-spelling.sh @@ -15,7 +15,7 @@ done OUT="$(mktemp)" shopt -s globstar -jekyll build +jekyll build --future for f in _site/**/*.html; do if ! grep -E '^_site/vendor/' <(echo "$f") > /dev/null; then l="$(head -n2 "$f" | tail -n1 | cut -d\" -f2)" diff --git a/scripts/spelling/en.txt b/scripts/spelling/en.txt index bebfc76..8a4f0d0 100644 --- a/scripts/spelling/en.txt +++ b/scripts/spelling/en.txt @@ -4,15 +4,19 @@ Slides aren autocommit backend +barcode behaviour +chargeback couldn cronjobs curation declaratively decrypting didn +differentiator doesn duplications +dynamicity embeddable filesystem filesystems @@ -36,4 +40,5 @@ tradeoffs untrusted ve wasn +whiteboarding wouldn diff --git a/scripts/spelling/international.txt b/scripts/spelling/international.txt index 12126cc..b56072c 100644 --- a/scripts/spelling/international.txt +++ b/scripts/spelling/international.txt @@ -15,6 +15,7 @@ BSON BY BY-SA Bitbucket +CDN CI CLI Cantrill @@ -27,22 +28,27 @@ F FFI FTS Fastmail +Forsgren GADTs GPLv GPLv3 GTK GitLab Gmail +GoCD GuixSD HN HTTPS Halloway Haskell +Hodgson +IPs IndexedDB JS JSON Joyent L1 +LTS LaTeX Lerna LilyPond @@ -56,6 +62,7 @@ Nextcloud NixOS POSIX Pastebin +Pittet PouchDB README RPN @@ -68,6 +75,7 @@ Sourcehut Spacemacs StackOverflow Staltz +Sten TAB TBs TOML @@ -79,7 +87,9 @@ WebAssembly Yandex YouTube Zig +apk boneco +br brainer buildGoModule cargo2nix @@ -93,9 +103,11 @@ datoms dl edn en +euandre euandreh eval fr +frontend gcrypt gt guix @@ -104,14 +116,17 @@ h1 h6 hinarioespirita html +https i5 i7 ify intbytes +ios ish jekyll jemoji js +k8s kramdown libre lockfile @@ -130,6 +145,8 @@ pastebins plaintext progn pt +rollout +rollouts sbcl songbooks sourcehut @@ -137,7 +154,10 @@ sr swift2nix systemd touchpad +txt v8 +www +xp xyz youtube à |