1 #+TITLE: Tools for publishing Org-babel documentation
2 #+OPTIONS: toc:nil num:nil ^:nil
4 * org-babel-documentation Project
6 This defines the =org-babel-documentation= project, for ease of
7 publishing. Publish a project with =C-c C-e X=.
9 #+begin_src emacs-lisp :results silent
10 (setq org-babel-dir (file-name-directory (or load-file-name buffer-file-name)))
11 (unless (boundp 'org-publish-project-alist)
12 (setq org-publish-project-alist nil))
13 (setq org-publish-project-alist
15 `("org-babel-documentation"
16 :base-directory ,org-babel-dir
18 :exclude "org-babel.org"
19 :publishing-directory ,(expand-file-name "doc" org-babel-dir)
20 :index-filename "org-babel-worg.org"
22 :style "<link rel=\"stylesheet\"href=\"stylesheet.css\"type=\"text/css\">")
23 org-publish-project-alist))
26 * org-babel-documentation stylesheet
28 #+begin_src css :tangle doc/stylesheet