We used to set PATH in emacs, but because babel executes "sh" via shell-command, the configuration of the main shell may supersedes ours. * doc/org/ltl2tgba.org, doc/org/ltl2tgta.org, doc/org/ltlcross.org, doc/org/ltlfilt.org, doc/org/randltl.org, doc/org/tools.org, doc/org/genltl.org: Move all local-file variable to... * doc/org/.dir-locals.el: ... here. And also set the PATH in org-babel-sh-command. * doc/org/init.el.in: Set the PATH in org-babel-sh-command.
36 lines
1.1 KiB
EmacsLisp
36 lines
1.1 KiB
EmacsLisp
(require 'org-publish)
|
|
(require 'org-install)
|
|
|
|
|
|
(print (concat "Org " (org-version)))
|
|
(setq org-export-htmlize-output-type 'css)
|
|
|
|
(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)
|
|
|
|
(setq org-babel-sh-command
|
|
(concat "PATH=@abs_top_builddir@/src/bin" path-separator "$PATH sh"))
|
|
|
|
(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)
|