I have hundreds Org files under a directory hierarchy and would want to export only those recently modified in HTML to speed up the process. I have the following project alist that I feed up to
`("html" :base-directory "~/Org/wiki" :base-extension "org" :include ,(my/org-files-to-publish) :with-broken-links t :publishing-directory "~/Org/wiki" :publishing-function org-html-publish-to-html)
(my/org-files-to-publish) returns recent Org files to export.
It seems that
org-publish considers not only files of
:include but also unconditionally those immediately under the root directory (e.g.
Question: How to export exactly a list of Org files to HTML ?
:exclude accepts only regex and not a files list, I can't find a reliable way to do what I want beside looping on
org-publish-file plus some extra stuff
P.S. This theory is confirmed by checking the output of
set-difference :test 'equal between
org-publish-get-base-files PROJECT and