1 #+TITLE: Tools for publishing Org-babel documentation
2 #+OPTIONS: toc:t h:3 num:nil ^:nil
4 This file contains the code required to export the documentation of Org-babel.
6 * org-babel-documentation Project
8 This defines the =org-babel-documentation= project, for ease of
9 publishing. Publish a project with =C-c C-e X=.
11 #+begin_src emacs-lisp :results silent
12 (setq org-babel-dir (file-name-directory (or load-file-name buffer-file-name)))
13 (unless (boundp 'org-publish-project-alist)
14 (setq org-publish-project-alist nil))
15 (setq org-publish-project-alist
17 `("org-babel-documentation"
18 :base-directory ,org-babel-dir
20 :exclude ,(regexp-opt-group '("org-babel.org" "test-export.org" "test-tangle.org" "test-tangle-load.org"))
21 :publishing-directory ,(expand-file-name "doc" org-babel-dir)
22 :index-filename "org-babel-worg.org"
24 :style "<link rel=\"stylesheet\"href=\"stylesheet.css\"type=\"text/css\">")
25 org-publish-project-alist))
28 * org-babel-documentation stylesheet
30 Calling =org-babel-tangle= in this file will export the css file for
31 the Org-babel documentation.
33 #+begin_src css :tangle doc/stylesheet