mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-23 04:44:03 +01:00
Fix GH workflow
This commit is contained in:
parent
7e3d259c9d
commit
352679919e
6
.github/workflows/gh-pages.yml
vendored
6
.github/workflows/gh-pages.yml
vendored
@ -20,6 +20,12 @@ jobs:
|
|||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: sudo apt-get install emacs26
|
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
|
- name: make
|
||||||
run: make -C src/ doc
|
run: make -C src/ doc
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
;; https://emacs.stackexchange.com/questions/38437/org-mode-batch-export-missing-syntax-highlighting
|
;; https://emacs.stackexchange.com/questions/38437/org-mode-batch-export-missing-syntax-highlighting
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
(require 'htmlize)
|
||||||
(require 'font-lock)
|
(require 'font-lock)
|
||||||
(require 'subr-x) ;; for `when-let'
|
(require 'subr-x) ;; for `when-let'
|
||||||
|
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
INPUT=$1
|
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
|
mv index.html ../docs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user