blob: 568e7e07be07f19b4cfbb18bc164930e74adfd1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#+TITLE: org-export
#+OPTIONS: toc:nil
* org-export
An ~about-filter~ for cgit using Emacs org-mode
#+BEGIN_SRC sh :tangle yes
#!/bin/sh
oname="`mktemp --suffix=.org`"
hname="${oname%.*}.html"
cat > "$oname"
emacs -Q -visit "$oname" -batch \
-l /usr/local/share/emacs/site-lisp/htmlize-1.39.el \
-eval "(let ((org-export-htmlize-output-type 'css))
(org-export-as-html 3 nil nil nil t))" \
2> /dev/null
cat "$hname"
rm "$hname" "$oname"
#+END_SRC
|