1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-22 20:36:01 +01:00

Fix GH workflow

This commit is contained in:
Anthony Scemama 2020-11-07 16:11:34 +01:00
parent 7e3d259c9d
commit 352679919e
3 changed files with 16 additions and 4 deletions

View File

@ -20,6 +20,12 @@ jobs:
- name: install dependencies
run: sudo apt-get install emacs26
- name: install htmlize
run: git clone https://github.com/hniksic/emacs-htmlize && cp emacs-htmlize/htmlize.el src/
- name: install htmlize
run: git clone https://github.com/hniksic/emacs-htmlize
- name: make
run: make -C src/ doc

View File

@ -2,6 +2,7 @@
;; https://emacs.stackexchange.com/questions/38437/org-mode-batch-export-missing-syntax-highlighting
(package-initialize)
(require 'htmlize)
(require 'font-lock)
(require 'subr-x) ;; for `when-let'

View File

@ -1,7 +1,12 @@
#!/bin/bash
INPUT=$1
emacs --batch --load ../docs/config.el $INPUT -f org-html-export-to-html
if [[ -f ../docs/htmlize.el ]]
then
emacs --batch --load ../docs/htmlize.el --load ../docs/config.el $INPUT -f org-html-export-to-html
else
emacs --batch --load ../docs/config.el $INPUT -f org-html-export-to-html
fi
mv index.html ../docs