Use duktape to run KaTeX from ruby with Node

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-05-24 04:23:25 +00:00
parent fda466a8cf
commit 2a86640401
5 changed files with 40 additions and 122 deletions

View File

@@ -46,5 +46,5 @@ cp -r public/$publicPath/* $out/
# Render math in HTML and XML files.
htmlfiles=$(find $out/ -regex "$out/.*\.html")
echo $htmlfiles | xargs katex-html
echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./convert.rb --katex-js-file static/katex/katex.min.js
echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./agda.rb