From bd80cd71d2c671c9dcad9030f19b37ce6b3ca0c9 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 7 Apr 2008 08:32:00 +0200 Subject: [PATCH] Much better integration of org-info.js. --- ChangeLog | 12 ++++ Makefile | 1 + ORGWEBPAGE/Changes.org | 26 +++++++++ lisp/org-exp.el | 123 +++++++++++++++++---------------------- lisp/org-infojs.el | 152 +++++++++++++++++++++++++++++++++++++++++++++++++ lisp/org.el | 3 +- 6 files changed, 246 insertions(+), 71 deletions(-) create mode 100644 lisp/org-infojs.el diff --git a/ChangeLog b/ChangeLog index 9254fec54..fb65a071e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ +2008-04-07 Carsten Dominik + + * lisp/org-exp.el (org-export-inbuffer-options-extra): New variable. + (org-export-options-filters): New hook. + (org-infile-export-plist): Find also the settings keywords in + `org-export-inbuffer-options-extra'. + + * lisp/org-infojs.el: New file. + 2008-04-06 Carsten Dominik + * lisp/org-exp.el (org-infile-export-plist): Allow multiple + #+OPTIONS lines and multiple #+INFOJS_OPT lines. + * lisp/org-agenda.el (org-agenda-start-with-clockreport-mode): New option. (org-agenda-clockreport-parameter-plist): New option. diff --git a/Makefile b/Makefile index 34d40733d..6bd9ba045 100644 --- a/Makefile +++ b/Makefile @@ -75,6 +75,7 @@ LISPF = org.el \ org-bibtex.el \ org-gnus.el \ org-info.el \ + org-infojs.el \ org-irc.el \ org-mac-message.el \ org-mhe.el \ diff --git a/ORGWEBPAGE/Changes.org b/ORGWEBPAGE/Changes.org index 8afd9084e..6d1b3878e 100644 --- a/ORGWEBPAGE/Changes.org +++ b/ORGWEBPAGE/Changes.org @@ -9,6 +9,32 @@ ** Details +*** Support for Sebastian Rose's Javasript org-info.js. + This fascinating program allows and Org file (exported to + HTML) to be viewed different ways. There is an Info-like + interface where you can jump through the sections of the + document with the `n' and `p' keys (and others). And there + is a folding interface where you can fold the document much + like you can fold it in org-mode in Emacs. + + To set this up, make sure the script is available in the same + location as your HTML file. Make sure that `org-infojs' is + loaded in `org-modules'. Then add a line + + : #+INFOJS_OPT: view:info + + to the buffer, that is all. The available views are: + + - =info=: like the Info program + - =overview=: Folding interface, only top-level headings seen + at startup. + - =content=: Folding interface, all headlines but no text + visible at startup. + - =showall=: Entire file visible at startup. + + For details see the documentation provided by Sebastian Rose + together with org-info.js. + *** The Org distribution has a new structure In the distribution files, the lisp files are now located in diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 2847a5d9c..c0222814b 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -414,6 +414,16 @@ Org-mode file." :group 'org-export-html :type 'string) +(defcustom org-export-html-link-up "" + "Where should the \"UP\" link of exported HTML pages lead?" + :group 'org-export-html + :type '(string :tag "File or URL")) + +(defcustom org-export-html-link-home "" + "Where should the \"HOME\" link of exported HTML pages lead?" + :group 'org-export-html + :type '(string :tag "File or URL")) + (defcustom org-export-html-style "