emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Benny Simonsen <benny@slbs.dk>
To: emacs-orgmode@gnu.org
Subject: Using macros in worg
Date: Mon, 1 Nov 2010 17:29:56 +0100	[thread overview]
Message-ID: <AANLkTimjUquArEDE34sXpB5ruJCqttD-g11cN4H6skKK@mail.gmail.com> (raw)

Hi

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
/macrs.setupfile.

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
repository.

/Benny

(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)...
       ("org-text"
        :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\" />"
        )

       ("org-static"
        :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	other threads:[~2010-11-01 16:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01 16:29 Benny Simonsen [this message]
2010-11-03 13:08 ` Using macros in worg Sebastian Rose
2010-11-03 19:58   ` Benny Simonsen
2010-11-03 21:30     ` Sebastian Rose
2010-11-04  7:23       ` Benny Simonsen
  -- strict thread matches above, loose matches on Subject: below --
2010-10-31 16:37 Benny Simonsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimjUquArEDE34sXpB5ruJCqttD-g11cN4H6skKK@mail.gmail.com \
    --to=benny@slbs.dk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).