2009-08-04 15:00:39 -04:00
|
|
|
#+TITLE: Tools for publishing Org-babel documentation
|
2009-08-05 10:02:25 -04:00
|
|
|
#+OPTIONS: toc:t h:3 num:nil ^:nil
|
|
|
|
|
|
|
|
This file contains the code required to export the documentation of Org-babel.
|
2009-08-04 15:00:39 -04:00
|
|
|
|
|
|
|
* org-babel-documentation Project
|
|
|
|
|
|
|
|
This defines the =org-babel-documentation= project, for ease of
|
|
|
|
publishing. Publish a project with =C-c C-e X=.
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp :results silent
|
|
|
|
(setq org-babel-dir (file-name-directory (or load-file-name buffer-file-name)))
|
|
|
|
(unless (boundp 'org-publish-project-alist)
|
|
|
|
(setq org-publish-project-alist nil))
|
|
|
|
(setq org-publish-project-alist
|
|
|
|
(cons
|
|
|
|
`("org-babel-documentation"
|
|
|
|
:base-directory ,org-babel-dir
|
|
|
|
:base-extension "org"
|
2009-08-09 14:49:07 -04:00
|
|
|
:exclude ,(regexp-opt-group '("org-babel.org" "test-export.org" "test-tangle.org" "test-tangle-load.org"))
|
2009-08-04 15:00:39 -04:00
|
|
|
:publishing-directory ,(expand-file-name "doc" org-babel-dir)
|
|
|
|
:index-filename "org-babel-worg.org"
|
|
|
|
:auto-postamble nil
|
|
|
|
:style "<link rel=\"stylesheet\"href=\"stylesheet.css\"type=\"text/css\">")
|
|
|
|
org-publish-project-alist))
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
* org-babel-documentation stylesheet
|
|
|
|
|
2009-08-05 10:02:25 -04:00
|
|
|
Calling =org-babel-tangle= in this file will export the css file for
|
|
|
|
the Org-babel documentation.
|
|
|
|
|
2009-08-04 15:00:39 -04:00
|
|
|
#+begin_src css :tangle doc/stylesheet
|
|
|
|
#logo {
|
|
|
|
float:right;
|
|
|
|
}
|
|
|
|
|
|
|
|
#logo #attr {
|
|
|
|
float:center;
|
|
|
|
text-align:center;
|
|
|
|
margin-top:-1em;
|
|
|
|
}
|
2009-08-04 15:09:08 -04:00
|
|
|
|
|
|
|
#subtitle {
|
|
|
|
float:center;
|
|
|
|
text-align:center;
|
|
|
|
}
|
2009-08-04 15:00:39 -04:00
|
|
|
#+end_src
|