Static site generator for KomentoScript packs in sites/.
[!WARNING]
KomentoScript is in early-phase undergoing testing & can be subject to change. Documentation will be more limited during initial development & testing periods.
Build output includes:
/ root page with search and origin filtering/data/all.json merged KomentoScript JSON/data/<id>.json JSON for each pack IDsites/ (for more information read the schema or documentation).npm install
npm run build
Generated files are written to dist/.
This generator follows the following shape:
targetId, match.origins, mergeMode, placement shape, and allowed extract keys.sites/ # Your source JSON packs
scripts/build.mjs # Build-time generator
scripts/validation/ # Schema + validator modules
scripts/validation/schema/komentoscript-pack.schema.json # JSON Schema
templates/root.html # Home page HTML template
templates/assets/ # Static CSS/JS copied to dist/assets
This repo includes a GitHub Actions workflow at .github/workflows/deploy-github-pages.yml.
main.dist/.npm run builddistThis repo includes netlify.toml.
Any static server works. For example:
npx serve dist
Then open /, /all, and /<id> routes, where <id> is the pack ID from your JSON files.