diff --git a/docs/development/npm-scripts.md b/docs/development/npm-scripts.md index e4aaa15c4..09d1803fc 100644 --- a/docs/development/npm-scripts.md +++ b/docs/development/npm-scripts.md @@ -3,6 +3,14 @@ This file documents the scripts available in the [package.json](../../package.json) file. Scripts can be executed by running `npm run `. +- `anki:css-json:write` + + Writes Anki structured content styling json for use when sending stuctured content dictionaries to Anki. + + CSS rules are taken from `ext/css/structured-content.css` and converted into json. + + CSS rule overrides and exclusions can be set in `dev/data/structured-content-overrides.css`. + - `bench` Runs performance benchmarks. diff --git a/package.json b/package.json index 6586a8717..ebf793d8f 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "type": "module", "scripts": { + "anki:css-json:write": "node ./dev/bin/generate-css-json.js --dryRun --all", "bench": "vitest bench", "build": "node ./dev/bin/build.js", "build:libs": "node ./dev/bin/build-libs.js",