fix(ot): add minified updated OT library and build:ot script

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2026-03-18 20:34:17 +01:00
committed by Philip Molares
parent 5a5e12a693
commit ca31580db5
6 changed files with 23 additions and 3 deletions

View File

@@ -11,3 +11,10 @@ And even more in this 2010 article series:
- <https://drive.googleblog.com/2010/09/whats-different-about-new-google-docs_21.html>
- <https://drive.googleblog.com/2010/09/whats-different-about-new-google-docs_22.html>
- <https://drive.googleblog.com/2010/09/whats-different-about-new-google-docs.html>
## OT library
HedgeDoc uses a vendored version of OT.js. The source code lives under `public/vendor/ot/`.
The HedgeDoc frontend uses a minified build `public/vendor/ot/ot.min.js`.
This build is generated by `yarn run build:ot`. This needs to be done after changes to the OT code.

View File

@@ -52,6 +52,7 @@ To copy this checklist please go to [this link](https://github.com/hedgedoc/hedg
mkdir /tmp/hedgedoc && cd /tmp/hedgedoc
git clone -b master https://github.com/hedgedoc/hedgedoc.git .
yarn install
yarn build:ot
yarn build
cd ..
tar cvzf hedgedoc-x.y.z.tar.gz --sort=name --exclude hedgedoc/node_modules --exclude hedgedoc/.git --exclude hedgedoc/.github --exclude hedgedoc/.yarn/cache hedgedoc