[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Using macros in worg

From: Benny Simonsen
Subject: [Orgmode] Using macros in worg
Date: Mon, 1 Nov 2010 17:29:56 +0100


I would like to use org-mode + git to generate a web page. I would
also like to use the "#+MACRO: " directives as defined in Worg

I have downloaded cloned the git repository for Worg
(git clone http://repo.or.cz/r/Worg.git) for an example.

How is the setup to expand the macros?

Are there any further setup that isn't included when I clone the git
repository of Worg?

I don't know how the web page is published - is the publishing done
automatically when the code is submitted to the "central" git archive,
or how is it done? - I have found out to publish something via the
below elisp code, but the macros don't work and there might be smarter
ways to do it automatically when submitted to a "central" git


(require 'org-publish)
(setq org-publish-use-timestamps-flag nil); Always publish all - else
files including other files (menu) aren't updated
(setq org-export-html-style-include-default nil)
(setq org-publish-project-alist

       ;; ... add all the components here (see below)...
        :base-directory "~/org/"
        :base-extension "org"
        :publishing-directory "~/public_html/"
        :recursive t
        :publishing-function org-publish-org-to-html
        :headline-levels 4             ; Just the default for this project.
;        :auto-preamble t
        :style "<link rel=\"stylesheet\" type=\"text/css\"
href=\"./css/stylesheet.css\" />"

        :base-directory "~/org/"
        :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
        :publishing-directory "~/public_html/"
        :recursive t
        :publishing-function org-publish-attachment

       ("org" :components ("org-text" "org-static")
        :include "./menu.org"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]