Compare commits

...

4 commits

Author SHA1 Message Date
Johannes Marbach 0711a683bd
Safely handle odd chars in filenames
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2025-10-30 15:49:58 +01:00
Johannes Marbach 3fe74be1bd
Don't rely on git to find the root path
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2025-10-30 15:44:56 +01:00
Johannes Marbach 4dc44c1021
Add header comment to document script
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2025-10-30 15:43:51 +01:00
Johannes Marbach 9ca00d2119
Tweak index page text
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2025-10-30 15:43:25 +01:00
2 changed files with 6 additions and 7 deletions

View file

@ -4,9 +4,7 @@ weight: 61
type: docs
---
The Olm and Megolm cryptographic ratchets are not formally part
of the Matrix specification. In lack of a better place, their
specification is reproduced here, regardless.
Matrix uses the Olm and Megolm cryptographic ratchets for [end-to-end encryption](../client-server-api/#end-to-end-encryption).
- [Olm: A Cryptographic Ratchet](/olm-megolm/olm/)
- [Megolm group ratchet](/olm-megolm/megolm/)

View file

@ -1,8 +1,9 @@
#!/bin/bash
#
# Download the KaTeX fonts and CSS, and copy them into `static`.
set -e
root=$(git rev-parse --show-toplevel)
root=$(dirname "$0")/..
# Check that the caller supplied a version.
version=$1
@ -35,6 +36,6 @@ install -vm644 "$tmp_dir/katex/katex.min.css" "$root/static/css/katex.min.css"
# Remove any existing fonts and move the new ones into place.
rm -rvf "$root"/static/css/fonts/KaTeX*
while read -r file; do
while IFS= read -r -d '' file; do
install -vm644 "$file" "$root/static/css/fonts"
done < <(find "$tmp_dir/katex/fonts" -maxdepth 1 -name "KaTeX*.woff2")
done < <(find "$tmp_dir/katex/fonts" -maxdepth 1 -name "KaTeX*.woff2" -print0)