Browse Source

sharing the raw (plain text) version of the org-babel-worg through the web page

Eric Schulte 16 years ago
parent
commit
1f60232f0d
2 changed files with 19 additions and 3 deletions
  1. 15 2
      org-babel-worg.org
  2. 4 1
      publish-babel.org

+ 15 - 2
org-babel-worg.org

@@ -8,7 +8,7 @@
 #+LANGUAGE:   en
 #+LANGUAGE:   en
 #+CATEGORY:   worg
 #+CATEGORY:   worg
 
 
-#+begin_html 
+#+begin_html
   <div id="subtitle">
   <div id="subtitle">
     <p>executable source code blocks in org-mode</p>
     <p>executable source code blocks in org-mode</p>
   </div>
   </div>
@@ -24,16 +24,29 @@
   </div>
   </div>
 #+end_html
 #+end_html
 
 
+#+begin_html
+  <p>
+  </p>
+#+end_html
+
 * Introduction
 * Introduction
   :PROPERTIES:
   :PROPERTIES:
   :CUSTOM_ID: introduction
   :CUSTOM_ID: introduction
   :END:
   :END:
   Org-babel provides the following modifications to [[http://orgmode.org/manual/Literal-examples.html][the existing
   Org-babel provides the following modifications to [[http://orgmode.org/manual/Literal-examples.html][the existing
   support]] for blocks of source code examples in the org-mode core.
   support]] for blocks of source code examples in the org-mode core.
-  1. source code execution
+  1. interactive source code execution
   2. arguments to source code blocks
   2. arguments to source code blocks
   3. exportation of source code blocks to files (literate programming)
   3. exportation of source code blocks to files (literate programming)
 
 
+Much of this document includes interactive examples.  The reader is
+encouraged to grab either the plain text version of this file
+#+HTML: <a href="org-babel-worg.org">org-babel-worg.org</a>
+which can be read and run in Emacs or the htmlized version of the
+plain text of this file
+#+HTML: <a href="org-babel-worg.org.html">org-babel-worg.html</a>
+which is viewable through the web browser.
+
 * Getting started
 * Getting started
   :PROPERTIES:
   :PROPERTIES:
   :CUSTOM_ID: getting-started
   :CUSTOM_ID: getting-started

+ 4 - 1
publish-babel.org

@@ -21,7 +21,10 @@ publishing.  Publish a project with =C-c C-e X=.
            :publishing-directory ,(expand-file-name "doc" org-babel-dir)
            :publishing-directory ,(expand-file-name "doc" org-babel-dir)
            :index-filename "org-babel-worg.org"
            :index-filename "org-babel-worg.org"
            :auto-postamble nil
            :auto-postamble nil
-           :style "<link rel=\"stylesheet\"href=\"stylesheet.css\"type=\"text/css\">")
+           :style "<link rel=\"stylesheet\"href=\"stylesheet.css\"type=\"text/css\">"
+           :publishing-function (org-publish-org-to-html org-publish-org-to-org)
+           :plain-source t
+           :htmlized-source t)
          org-publish-project-alist))
          org-publish-project-alist))
 #+end_src
 #+end_src