1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-18 00:43:51 +02:00
qmckl/src/create_doc.sh

24 lines
433 B
Bash
Executable File

#!/bin/bash
# Tangle org files
emacsclient -a "" \
--socket-name=org_to_code \
--eval "(load-file \"config.el\")"
for INPUT in $@ ; do
echo $INPUT
emacsclient \
--no-wait \
--socket-name=org_to_code \
--eval "(find-file \"$INPUT\")" \
--eval "(org-html-export-to-html)"
done
mv *.html ../docs
emacsclient \
--no-wait \
--socket-name=org_to_code \
--eval '(kill-emacs)'