adding files/functions for publishing org-babel documentation
[rgr-org-mode.git] / publish-babel.org
blob11ce3c43b3460a64e02e341a06beb2a4eb350d5f
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
14         (cons
15          `("org-babel-documentation"
16            :base-directory ,org-babel-dir
17            :base-extension "org"
18            :exclude "org-babel.org"
19            :publishing-directory ,(expand-file-name "doc" org-babel-dir)
20            :index-filename "org-babel-worg.org"
21            :auto-postamble nil
22            :style "<link rel=\"stylesheet\"href=\"stylesheet.css\"type=\"text/css\">")
23          org-publish-project-alist))
24 #+end_src
26 * org-babel-documentation stylesheet
28 #+begin_src css :tangle doc/stylesheet
29   #logo {
30       float:right;
31   }
32   
33   #logo #attr {
34       float:center;
35       text-align:center;
36       margin-top:-1em;
37   }
38 #+end_src