docs: every doc, README and demo page checked against the code, and shortened

Merged
AL
21h ago
+925-1159

Every doc, package README and demo page was checked against the code and shortened where it was wordy. Each doubt was settled from the source or by running the command, not from design/ or comments. No code changes.

What changed

  • Author README: 29 KB to 12 KB. Its API reference moved to a new docs/author-api.md, as tables of exports, options and results; the root README links it.
  • MCP README: the tools are a table, and the folders and "what leaves your computer" sections are short lists.
  • Embed README: 22 KB to 19 KB; docs/cmi5.md and the cmi5 README no longer repeat each other.
  • The other docs and READMEs were already tight: small cuts, and several grew by a corrected fact.
  • Demo pages: text only, 8 of 12 pages. One table row added (downgrade-libraries on the setup page).

Stale claims fixed

  • Newer library versions. Four places said content made for a newer library version than the pack has is refused or must wait. By default it plays at the newest older minor (downgrade-libraries): verify README, the app page, the compare page, the setup page's table.
  • The frame's language. The runtime README said the element's lang picks it. The package's defaultLanguage comes first, then lang.
  • AR Scavenger. Named as a camera user in three places; the frame's script policy blocks its inline scripts, so it does not run.
  • The app server. The MCP README said "It is not a service we run yet". That sentence is gone; the README names no hosted address.
  • cmi5. failed goes out once per session, not per registration. Browse and Review mode withhold only the result, not every statement. The demo's cards said "completion by the mastery score"; it is pass or fail.
  • Embed and SCORM. The Caddyfile needs its domain replaced; the command prints no policy; the report message carries downgradedLibraries; buildScormInPage returns an object, not a Blob; exit codes and --force with --scorm are now listed.
  • Element API (docs/api.md). Nothing dropped or renamed. file wins over src only until a new src is set; a save follows a completed or progressed statement by three seconds; custom-css and custom-js load after the libraries' own.
  • Troubleshooting. The curl -sI check could never show a body; it is now curl -s -D - -r 0-1. The formulas row now gives libraries="pack" as the fix.
  • Normalize README. It never said that directory entries, duplicates and refused names are dropped.
  • Numbers. Library pack 1.1.1, largest type bundle 8 MB, install-only libraries 1.9 MB, the revision example's version.
  • Root README. Three weekly jobs, not one. The hosted demo counts page views (no cookies), so "no telemetry" now says it is the packages that have none.

Policy pages

docs/compatibility.md and ACCESSIBILITY.md are unchanged. SECURITY.md gains two rows in its supported versions: the VS Code extension and the hosted app server. docs/privacy.md keeps its wording and gains four facts, each checked in the code:

  • The cache name is h5p-pkg-v<major>-*, not v0.
  • Echo360 joins the video hosts.
  • A new row for Timeline's media hosts (Wikipedia, Vimeo, SoundCloud, Flickr), which the frame's policy allows.
  • A SCORM zip also gives the LMS each question's result, with a typed answer.

The libraries README now names each licence word for word as libraries.txt does: MPL, MPL2, pd, GPL3, GPL-3.0, and MathDisplay's Apache-2.0 parts.

Left as it is

  • The element mirrors a state attribute that docs/api.md does not document; adding it would extend the contract.
  • Claims about third-party systems (LMS settings, other H5P tools, browser install steps) cannot be checked from this code and stay as written.

Checked

  • pnpm build:demo builds.
  • The skills test that reads the embed README's LMS table passes.
  • Links and anchors that other files point at still resolve.

Found in code, not fixed here

  • h5p-embed --scorm quiz.h5p missing-folder/out.zip ends in an uncaught ENOENT stack trace: #290, fixed in #291.
  • h5p-embed --help says the library pack is 13.7 MB; it is 13.8.
  • A few stale code comments, which #288 covers.