emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Richard G Riley <rileyrgdev@googlemail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: org-publish
Date: Sun, 22 Jun 2008 00:27:04 -0400	[thread overview]
Message-ID: <25984.1214108824@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Richard G Riley <rileyrgdev@googlemail.com> of "Sat, 21 Jun 2008 15:05:53 +0200." <cwmylflyz2.fsf@richardriley.net>

Richard G Riley <rileyrgdev@googlemail.com> wrote:

> >>> Not sure if this will help in your case but try adding:
> >>>
> >>>    :publishing-function org-publish-org-to-html
> >>>

> Could someone who uses org-publish possibly post their setting for this
> variable and possibly a subset (including header) of a published file?
> 

Richard,

I have a minimal setup that works fine for me. Here is the relevant
section from my org initialization file, which gets loaded from .emacs:

;;; org-publish
(setq org-publish-project-alist
      '(("status"
         :base-directory "~/lib/status/weekly"
         :publishing-directory "/ssh:nick@foo.bar.com:~/public_html/logs"
         :publishing-function org-publish-org-to-html
         :headline-levels 3
         :section-numbers nil
         :table-of-contents nil
;         :style nil
         :auto-preamble t
         :auto-postamble nil
         )))

(require 'org-publish)


Basically, I jot down status at the end of each day and then publish the
jottings at the end of the week. The org and published files look like
this (this is an edited version of the ones from the week that ended on
June 13):


---------------------------------------------------------------------------

* Status

** [2008-06-09 Mon] 
   - foo
   - bar
   - baz

** [2008-06-10 Tue]

   - foo
   - bar
   - baz

** [2008-06-11 Wed]

   - foo
   - bar

** [2008-06-12 Thu]

   - foo
   - bar

** [2008-06-13 Fri]

   - foo
   - bar
   - baz


#+TITLE: Status
#+OPTIONS: num:nil toc:nil author:nil timestamp:nil

---------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>Status</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2008/06/16 10:10:33 AM"/>
<meta name="author" content="Nick Dokos"/>
<style type="text/css">
  html {
	font-family: Times, serif;
	font-size: 12pt;
  }
  .title { text-align: center; }
  .todo  { color: red; }
  .done { color: green; }
  .timestamp { color: grey }
  .timestamp-kwd { color: CadetBlue }
  .tag { background-color:lightblue; font-weight:normal }
  .target { }
  pre {
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	padding: 5pt;
	font-family: courier, monospace;
        font-size: 90%;
  }
  table { border-collapse: collapse; }
  td, th {
	vertical-align: top;
	<!--border: 1pt solid #ADB9CC;-->
  }
  dt { font-weight: bold; }
</style>
</head><body>
<h1 class="title">Status</h1>

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1">Status</h2>
<div id="text-1">



</div>

<div id="outline-container-1.1" class="outline-3">
<h3 id="sec-1.1"><span class="timestamp">2008-06-09 Mon</span> </h3>
<div id="text-1.1">

<ul>
<li>
foo
</li>
<li>
bar
</li>
<li>
baz
</li>
</ul>
</div>

</div>

<div id="outline-container-1.2" class="outline-3">
<h3 id="sec-1.2"><span class="timestamp">2008-06-10 Tue</span></h3>
<div id="text-1.2">


<ul>
<li>
foo
</li>
<li>
bar
</li>
<li>
baz
</li>
</ul>
</div>

</div>

<div id="outline-container-1.3" class="outline-3">
<h3 id="sec-1.3"><span class="timestamp">2008-06-11 Wed</span></h3>
<div id="text-1.3">


<ul>
<li>
foo
</li>
<li>
bar

</li>
</ul>
</div>

</div>

<div id="outline-container-1.4" class="outline-3">
<h3 id="sec-1.4"><span class="timestamp">2008-06-12 Thu</span></h3>
<div id="text-1.4">


<ul>
<li>
foo
</li>
<li>
bar

</li>
</ul>
</div>

</div>

<div id="outline-container-1.5" class="outline-3">
<h3 id="sec-1.5"><span class="timestamp">2008-06-13 Fri</span></h3>
<div id="text-1.5">


<ul>
<li>
foo
</li>
<li>
bar

</li>
<li>
baz

</li>
</ul>
</div>
</div>
</div>
</body>
</html>

---------------------------------------------------------------------------

HTH,
Nick

  reply	other threads:[~2008-06-22  4:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-21  1:27 org-publish Richard G Riley
2008-06-21  4:31 ` org-publish Manish
     [not found]   ` <7s4p7nouop.fsf@richardriley.net>
     [not found]     ` <e7cdbe30806210543m361bda09q8357b084531abc67@mail.gmail.com>
2008-06-21 13:05       ` org-publish Richard G Riley
2008-06-22  4:27         ` Nick Dokos [this message]
2008-06-22 14:25           ` org-publish Manish
2008-06-22 15:07             ` org-publish Carsten Dominik
2008-06-22 15:27               ` org-publish Manish
2008-06-22 20:57                 ` org-publish Carsten Dominik
2008-06-23 10:41                   ` org-publish Richard G Riley
2008-06-23 14:46                     ` org-publish Carsten Dominik
2008-06-23 10:39               ` org-publish Richard G Riley
2008-06-23 16:19                 ` org-publish Carsten Dominik
2008-07-07 14:24               ` org-publish Rick Moynihan
2008-07-07 15:42                 ` org-publish Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2008-07-04 15:28 org-publish Richard G Riley
2008-07-05 15:30 ` org-publish Carsten Dominik
2008-07-05 15:42   ` org-publish Richard G Riley
2008-07-07 15:44     ` org-publish Carsten Dominik
2008-08-20  4:04 org-publish David O'Toole
2008-08-20  9:18 ` org-publish Sebastian Rose

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=25984.1214108824@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrgdev@googlemail.com \
    /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).