Files
..
2026-08-05 22:13:04 +02:00
2026-08-05 22:13:04 +02:00

Browser libraries

Only rustpad-player/ belongs to the repository. Mermaid and Highlight.js are generated directories and must not be committed.

Run:

python3 scripts/update_browser_libs.py

The updater resolves the current stable npm versions, verifies package integrity, copies the required browser assets and licenses, and atomically replaces:

  • static/libs/mermaid/
  • static/libs/highlight/

./dev.sh runs the updater before local Cargo development. Docker downloads the same libraries in the browser-libs build stage. The application lazy-loads them only when matching content is rendered.

Project-owned media helpers remain in static/libs/rustpad-player/.