new functions and fixes

This commit is contained in:
Mateusz Gruszczyński
2026-08-05 22:13:04 +02:00
parent 9fc32d0d31
commit e842b26978
34 changed files with 2505 additions and 115 deletions
+18
View File
@@ -0,0 +1,18 @@
# Browser libraries
Only `rustpad-player/` belongs to the repository. Mermaid and Highlight.js are generated directories and must not be committed.
Run:
```bash
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/`.