emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] org-publish


From: Nick Dokos
Subject: Re: [Orgmode] org-publish
Date: Sun, 22 Jun 2008 00:27:04 -0400

Richard G Riley <address@hidden> 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:address@hidden:~/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 via email to

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