Update default.nix to also serve fonts from KaTeX

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2023-11-30 06:07:21 +00:00
parent aae85e7628
commit a462008844

View File

@ -20,6 +20,7 @@ in
installPhase = ''
mkdir -p $out $out/katex $out/katex-expression $out/bergamot
cp ${yarnModules}/node_modules/katex/dist/katex.min.css $out/katex
cp -r ${yarnModules}/node_modules/katex/dist/fonts $out/katex
cp ${yarnModules}/node_modules/@navsnpm/katex-expression/dist/katex-expression/katex-expression.esm.js $out/katex-expression
cp ${bergamot-elm}/Main.min.js $out/bergamot/bergamot.js
'';