init.el.in 2.65 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
(or (require 'org-publish nil t)	; Org 7
    (require 'ox-publish))		; Org 8
5
6
7
8
(require 'org-install)

(print (concat "Org " (org-version)))
(setq org-export-htmlize-output-type 'css)
9
10
11
; 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)
12
13
14
;; 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/")
15
16
17
18
19

(org-babel-do-load-languages
 'org-babel-load-languages
 '((sh . t)
   (dot . t)
20
21
   (python . t)
   (C . t)))
22
23
(setq org-confirm-babel-evaluate nil)

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

27
28
29
30
31
32
33
34
35
(setq org-babel-python-command "/usr/bin/python3")
(setq org-babel-C++-compiler "./g++wrap")

(setenv "PYTHONPATH"
	(concat "@abs_top_builddir@/wrap/python/.libs:@abs_top_builddir@/wrap/python:@abs_top_srcdir@/wrap/python:"
		(getenv "PYTHONPATH")))
(setenv "DYLD_LIBRARY_PATH"
	(concat "@abs_top_builddir@/wrap/python/.libs:@abs_top_builddir@/src/.libs:@abs_top_builddir@/buddy/src/.libs:"
		(getenv "DYLD_LIBRARY_PATH")))
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
36
(setenv "SPOT_DOTDEFAULT" "Brf(Lato)")
37
38
(setenv "SPOT_DOTEXTRA"
 "node[style=filled, fillcolor=\"#ffffa0\"] edge[arrowhead=vee, arrowsize=.7]")
39

40
41
42
43
44
(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>")

45
(setq org-publish-project-alist
46
      `(("spot-html"
47
48
49
50
	:base-directory "@abs_top_srcdir@/doc/org/"
	:base-extension "org"
	:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
	:recursive t
51
52
53
	:publishing-function
	,(if (require 'org-publish nil t) 'org-publish-org-to-html ; Org 7
	   'org-html-publish-to-html)                              ; Org 8
54
55
56
57
	; Org 8
	:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
	; Org 7
	:style "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"syntax.css\" />\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
58
59
60
61
62
63
64
65
66
67
	: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)