repo: remove superseded pilot files, ASCII-clean the build and nginx configs

Drops the legacy course-1 template, the two python assemblers the node
assembler replaced, and the unversioned scene manifest left over from the
manifest-<type> split - none referenced by build.sh, the assembler or the
README, and none produce build output. The v2 pages stay: the README lists
them as parked. Also converts typographic dashes to ASCII in build.sh and the
two nginx configs, and corrects an assembler comment that still pointed at the
removed python build.
This commit is contained in:
2026-08-25 21:13:45 +10:00
parent b67ada9c65
commit b27417ff02
8 changed files with 7 additions and 565 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Assemble dist/ the CSP-clean static build served at learn.bztmon.com.
# Assemble dist/ - the CSP-clean static build served at learn.bztmon.com.
# The site's face is the delivery arc (index.html); scripts stay SEPARATE files so
# `script-src 'self'` holds with no 'unsafe-inline' exception. Assembly logic lives
# in pilot/assemble-arc.mjs (node the build image carries no python).
# in pilot/assemble-arc.mjs (node - the build image carries no python).
set -euo pipefail
IFS=$'\n\t'
trap 'printf "build failed at line %s\n" "$LINENO" >&2' ERR
@@ -35,7 +35,7 @@ node pilot/assemble-arc.mjs "$dist"
# No inline JS may survive into ANY served HTML, or the CSP silently kills the page.
for page in "$dist"/*.html; do
if grep -oiE '<script[^>]*>' -- "$page" | grep -qivE 'src='; then
printf '%s contains an inline <script> CSP script-src self would block it\n' "$page" >&2
printf '%s contains an inline <script> - CSP script-src self would block it\n' "$page" >&2
exit 1
fi
done