emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: emacs-orgmode@gnu.org
Cc: nicholas.dokos@hp.com
Subject: Re: org-publish not publishing changed files
Date: Fri, 18 Mar 2011 21:33:04 -0400	[thread overview]
Message-ID: <3366.1300498384@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Aidan Gauland <aidalgol@no8wireless.co.nz> of "Sat, 19 Mar 2011 14:16:23 +1300." <20110319011622.GA11088@neko>

Aidan Gauland <aidalgol@no8wireless.co.nz> wrote:

> Hi,
> 
> I use org-mode for my website, and I've noticed that when I go to
> publish the website, none of the files I have just edited are updated
> in the publishing directory.  I have no idea why.  Here is the elisp I
> evaluate to publish my website.
> 
> (setq 
>  org-publish-project-alist
>  '(("aidalgolland-orgfiles"
>     :base-directory "~/doc-aidan/aidalgolland/main/"
>     :publishing-directory "/ssh:aidan@nathan7.eu:public_html/aidalgolland/"
>     :publishing-function org-publish-org-to-html
>     :recursive t
>     :base-extension "org"
>     :section-numbers nil
>     :table-of-contents nil
>     :creator-info nil
>     :language "en"
>     :author "Aidan Gauland"
>     :style "<link rel=\"stylesheet\" type=\"text/css\" href=\"/~aidan/aidalgolland/global.css\" />"
>     :auto-preamble t
>     :auto-postamble t)
> 
>    ("aidalgolland-static"
>     :base-directory "~/doc-aidan/aidalgolland/main/"
>     :publishing-directory "/ssh:aidan@nathan7.eu:public_html/aidalgolland/"
>     :publishing-function org-publish-attachment
>     :recursive t
>     :base-extension "css\\|gz\\|bz2\\|lzma\\|jpg\\|gif\\|png\\|atom")
> 
>    ("aidalgolland" :components ("aidalgolland-orgfiles" "aidalgolland-static"))))
> 
> (org-babel-lob-ingest "~/doc-aidan/aidalgolland/babel-lib.org")
> (org-publish "aidalgolland")
> 
> (makunbound 'org-publish-project-alist)
> 
> Can anyone help me with this?
> 
> Thanks,
> Aidan Gauland

org uses timestamps to figure out which files need publishing
(see section 13.4 of the Org manual) and they may have gotten
curdled somehow. You can force publication by giving a second
argument to org-publish (if you called it interactively, you
could do that by giving it a prefix arg):

(org-publish "aidalgolland" t)

Or you can try getting rid of the timestamps (they are stored
in the directory named in the variable org-publish-timestamp-directory
(by default "~/.org-timestamps/") and publish again.

If you can figure out *why* they got out of sync, that would be
a bonus and worth a post here, particularly if you can identify
a bug in the code.

Nick

  parent reply	other threads:[~2011-03-19  1:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  9:08 Override export filename Aidan Gauland
2010-11-02 15:44 ` Giovanni Ridolfi
2010-11-02 18:04   ` Aidan Gauland
     [not found]     ` <aidalgol@no8wireless.co.nz>
2010-11-02 18:35       ` Nick Dokos
2010-11-05  0:57         ` Aidan Gauland
2011-03-19  1:33       ` Nick Dokos [this message]
2011-03-19  2:19         ` org-publish not publishing changed files Suvayu Ali
2011-03-20 11:30           ` David Maus
2011-03-20 11:47             ` Suvayu Ali
2011-03-22  2:00         ` Aidan Gauland
2011-03-22  6:18           ` Nick Dokos
2011-03-22  7:32             ` Aidan Gauland
2011-03-22 14:17               ` Nick Dokos
2011-04-01 19:56                 ` Aidan Gauland
2011-03-19  1:16 Aidan Gauland

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=3366.1300498384@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: org-publish not publishing changed files' \
    /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

Code repositories for project(s) associated with this 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).