new functions and fixes
This commit is contained in:
@@ -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/`.
|
||||
Reference in New Issue
Block a user