init.el.in 1.85 KB
Newer Older
1
2
;; htmlize is not always in the load-path.  On Debian it can be found here.
(setq load-path (cons "/usr/share/emacs/site-lisp/emacs-goodies-el" load-path))
3
4
5
6
7
(require 'org-publish)
(require 'org-install)

(print (concat "Org " (org-version)))
(setq org-export-htmlize-output-type 'css)
8
9
10
; the .org-timestamp directory does not always exist, is not always
; created by org, and that causes issues on our buildfarm.
(setq org-publish-use-timestamps-flag nil)
11
12
13
;; The default value of writing to ~/.org-timestamps causes race
;; conditions when doing concurrent builds.
(setq org-publish-timestamp-directory "@abs_top_builddir@/.org-timestamps/")
14
15
16
17
18
19
20
21
22

(setq org-babel-python-command "/usr/bin/python3")
(org-babel-do-load-languages
 'org-babel-load-languages
 '((sh . t)
   (dot . t)
   (python . t)))
(setq org-confirm-babel-evaluate nil)

23
24
25
(setq org-babel-sh-command
      (concat "PATH=@abs_top_builddir@/src/bin" path-separator "$PATH sh"))

26
27
28
29
30
(setq org-export-html-home/up-format
"<div id=\"org-div-home-and-up\" style=\"text-align:center;white-space:nowrap;\">
 <a accesskey=\"h\" href=\"%s\">UP</a> | <a accesskey=\"H\" href=\"%s\">HOME</a>
</div>")

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(setq org-publish-project-alist
      '(("spot-html"
	:base-directory "@abs_top_srcdir@/doc/org/"
	:base-extension "org"
	:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
	:recursive t
	:publishing-function org-publish-org-to-html
	:style "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"http://spot.lip6.fr/css/spot-zenburn.css\" />"
	:auto-preamble t)
       ("spot-static"
	:base-directory "@abs_top_srcdir@/doc/org/"
	:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf"
	:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
	:recursive t
	:publishing-function org-publish-attachment)
       ("spot-all" :components ("spot-html" "spot-static"))))

(org-publish-all t)