emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: vikaslists@agrarianresearch.org
Cc: emacs-orgmode@gnu.org
Subject: Re: Publishing sitemap
Date: Wed, 18 Jun 2014 10:02:29 -0400	[thread overview]
Message-ID: <11709e4a9a6b92a5c49d2a8e780094d5@mail.rickster.com> (raw)


Sorry, hit the wrong key... completed response below.

On 2014-06-18 03:54, Vikas Rawal wrote:
> When I publish my web-site using org-mode, with suitable options in my
> org-publish-projects-alist, I can get org-publish to create a sitemap.
> 
> Is it possible to just create the sitemap without publishing the whole
> project? I sometimes update a single file, and just publish it using
> org-publish-current-file. I would like the changes (for example, date)
> or if a new file is being published, the file itself, reflected in the
> sitemap.  But I can’t do it unless I publish the whole project.
> 
> Is there a way to deal with this?

Looking at the source for `org-publish-projects' (grep for sitemamp in
ox-publish) it looks like the sitemap is generated in this line:

(if sitemap-p (funcall sitemap-function project sitemap-filename))

where `sitemap-function' defaults to `org-publish-org-sitemap'.

So (untested), you could try:

(org-publish-org-sitemap
(assoc "my-project-name" org-publish-project-alist)
"sitemap.txt")

rick

             reply	other threads:[~2014-06-18 14:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-18 14:02 Rick Frankel [this message]
2014-06-19 11:32 ` Publishing sitemap Vikas Rawal
  -- strict thread matches above, loose matches on Subject: below --
2014-06-27 20:44 John Tait
2014-06-18  7:54 Vikas Rawal
2014-06-18 13:57 ` Rick Frankel
2014-06-18  7:54 Rawal, Vikas (ESD)

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=11709e4a9a6b92a5c49d2a8e780094d5@mail.rickster.com \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=vikaslists@agrarianresearch.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).