From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibault Marin Subject: Re: Use headings in sitemap Date: Tue, 11 Oct 2016 23:52:39 -0500 Message-ID: <87k2dedv8o.fsf@dell-desktop.WORKGROUP> References: <87fuojl53s.fsf@dell-desktop.WORKGROUP> <87y41uq1yo.fsf@nicolasgoaziou.fr> Reply-To: thibault.marin@gmx.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buBX7-0002fH-NJ for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 00:52:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buBX2-0003uw-N5 for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 00:52:48 -0400 Received: from mout.gmx.net ([212.227.15.18]:64414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buBX2-0003ug-DD for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 00:52:44 -0400 In-reply-to: <87y41uq1yo.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: org mode , Rasmus Nicolas Goaziou writes: > This reminds me of a patch Rasmus (Cc'ed) is working on (thread starting > at: ). I missed that for some reason, it is better and more ambitious. > I suggest to let :sitemap-function operate on the lists of files > included in the sitemap (i.e., the list of files in the project), > already ordered, and formatted according to > `org-publish-sitemap-file-entry-format'. > > The list would be provided in the same format as the return value from > `org-list-to-lisp', so that, e.g., `org-list-to-subtree' can be directly > called on it. That sounds good to me. > Also, I suggest to make `org-publish-sitemap-file-entry-format' > a function instead of a string, so as to get more power, i.e., to not > limit ourselves to the list of placeholders allowed in the format > string. In particular, we could provide a public function > org-publish-get-keyword (file keyword &optional backend), much like what > Rasmus does in his patchset, but with a back-end so as to get the value > of any export keyword. Also, this would make > `org-publish-sitemap-dir-entry-format' unnecessary. > > Eventually, we could run a hook at the end of `org-publish-org-sitemap', > which would now always be called, in order to give the opportunity to > modify the sitemap as a whole (e.g., the title). > > In a nutshell, ISTM that it would solve both your request and the > difficulties encountered by Rasmus in changes. > > WDYT? I think it would definitely address my needs and clearly improve the overall process. I'll need some time to digest this as I am not too familiar with the process, but please let me know how I can help with this (implementation and testing). Thanks. thibault