mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 12:23:56 +01:00
Fix GH workflow
This commit is contained in:
parent
7e3d259c9d
commit
352679919e
12
.github/workflows/gh-pages.yml
vendored
12
.github/workflows/gh-pages.yml
vendored
@ -10,16 +10,22 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: install extra repository
|
||||
run: sudo add-apt-repository ppa:kelleyk/emacs
|
||||
|
||||
|
||||
- name: refresh apt
|
||||
run: sudo apt-get update
|
||||
|
||||
|
||||
- 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
|
||||
|
||||
|
@ -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'
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user