Re: [O] Use headings in sitemap

2016-11-02 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > The latest update works for me (all my previously reported issues are > fixed). I have also tested anti-chronologically sorting, which works > too. Great. > Please let me know if you'd like me to run additional tests. I wrote and pushed a full test suite for s

Re: [O] Use headings in sitemap

2016-10-31 Thread Thibault Marin
> I think this is a genuine bug. Exclude regexp should be matched against > relative file names, not absolute ones. I fixed it in wip-sitemap. You > may want to rebase the branch if you want to experiment with the fix. The latest update works for me (all my previously reported issues are fixed).

Re: [O] Use headings in sitemap

2016-10-31 Thread Nicolas Goaziou
Thibault Marin writes: > Sorry for the confusion, I don't think anything is wrong with the new > ox-publish.el, but the selection of excluded files by regexp seems to > have changed (I personally have no problem with this change, I just > thought I'd mention it). > > My directory structure has a

Re: [O] Use headings in sitemap

2016-10-31 Thread Thibault Marin
> I'm not sure to understand. Why resulting in an empty file list is > a problem? Is there an error in the new "ox-publish.el"? Sorry for the confusion, I don't think anything is wrong with the new ox-publish.el, but the selection of excluded files by regexp seems to have changed (I personally ha

Re: [O] Use headings in sitemap

2016-10-31 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > I don't have the `directory-name-p' function (I am still on emacs 24), > so I made a simplistic one: (string= file (file-name-sans-extension > file)), it seems to be sufficient for my test-case. I don't know if not > being on 25 will cause other issues. Fixed.

Re: [O] Use headings in sitemap

2016-10-30 Thread Thibault Marin
Nicolas Goaziou writes: > I pushed an implementation of that idea in wip-sitemap branch, if anyone > wants to test it. Thanks! > For example, setting :sitemap-function property to > >(lambda (title list) > (concat "#+TITLE: " title "\n\n" > (org-list

Re: [O] Use headings in sitemap

2016-10-30 Thread Nicolas Goaziou
Nicolas Goaziou writes: > Hello, > > Rasmus Pank Roulund writes: > >> Nicolas Goaziou writes: > >> It’s not quite that complicated in my patch/WIP. You specify an ordering >> function. E.g. the plain list is: >> >> (defun org-publish-org-sitemap-as-list (files project-plist) >>"I

Re: [O] Use headings in sitemap

2016-10-12 Thread Nicolas Goaziou
Hello, Rasmus Pank Roulund writes: > Nicolas Goaziou writes: > It’s not quite that complicated in my patch/WIP. You specify an ordering > function. E.g. the plain list is: > > (defun org-publish-org-sitemap-as-list (files project-plist) >"Insert FILES as simple list separated by

Re: [O] Use headings in sitemap

2016-10-12 Thread Rasmus Pank Roulund
Nicolas Goaziou writes: > Hello, > > Thibault Marin writes: > >> I would like to generate a sitemap for a published website and use >> it to extract >> the last few entries in a specific folder to put on the main page. >> >> The site structure looks like: >> . >> ├── index.org >> ├── posts >> │

Re: [O] Use headings in sitemap

2016-10-11 Thread Thibault Marin
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 > i

Re: [O] Use headings in sitemap

2016-10-11 Thread Nicolas Goaziou
Hello, Thibault Marin writes: > I would like to generate a sitemap for a published website and use it to > extract > the last few entries in a specific folder to put on the main page. > > The site structure looks like: > . > ├── index.org > ├── posts > │ ├── A.org > │ ├── B.org > │ └── C.