From: Jan Seeger <jan.seeger@thenybble.de>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Always add sitemap file to project files if sitemap is requested
Date: Fri, 07 Jan 2011 14:42:22 +0100 [thread overview]
Message-ID: <87fwt4keyp.wl%jan.seeger@thenybble.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
Greetings!
I noticed some wonkiness in getting my sitemap created on my webserver
when pushing my website, and the problem seems to lie in
org-publish-get-base-files only returning existing files, and not
picking up on the soon to be generated sitemap. My patch always adds
the sitemap file to the list of returned files if a sitemap is
requested, regardless of if it exists or not.
Regards, Jan Seeger
[-- Attachment #2: org-publish.patch --]
[-- Type: text/plain, Size: 908 bytes --]
diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index f29b402..baf282a 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -434,6 +434,9 @@ matching filenames."
;; org-publish-compare-directory-files:
(sitemap-requested
(plist-get project-plist :auto-sitemap))
+ (sitemap-filename
+ (or (plist-get project-plist :sitemap-filename)
+ "sitemap.org"))
(sitemap-sort-folders
(if (plist-member project-plist :sitemap-sort-folders)
(plist-get project-plist :sitemap-sort-folders)
@@ -454,6 +457,9 @@ matching filenames."
(setq sitemap-sort-folders nil))
(setq org-publish-temp-files nil)
+ (if sitemap-requested
+ (pushnew (expand-file-name (concat base-dir sitemap-filename))
+ org-publish-temp-files))
(org-publish-get-base-files-1 base-dir recurse match
;; FIXME distinguish exclude regexp
;; for skip-file and skip-dir?
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2011-01-07 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 13:42 Jan Seeger [this message]
2011-01-26 10:03 ` [Accepted] Always add sitemap file to project files if sitemap is requested Carsten Dominik
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=87fwt4keyp.wl%jan.seeger@thenybble.de \
--to=jan.seeger@thenybble.de \
--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).