reddit / emacs

org-publish exclusion not working

paarulakan · 2022-10-20 05:38
even with the following configuration org-publish-all is not ignoring the mentioned files. :exclude "README\\|TODO\\|draft\\|kuri\\|template" Log when I execute org-publish-all Publishing file posts.org using ‘org-html-publish-to-html’ Publishing file index.org using ‘org-html-publish-to-html’ Publishing file kuri.org using ‘org-html-publish-to-html’ Publishing file TODO.org using ‘org-html-publish-to-html’ Publishing file README.org using ‘org-html-publish-to-html’ full config section ("agam" :base-directory "\~/agam/projects/blogs/vanangamudi.gitlab.io" :base-extension "org" :exclude "templates/" :exclude "README\\|TODO\\|draft\\|kuri\\|template" ;; apparently the following do not work for :exclude ;; "\\(:?README\\|TODO\\|draft\\|kuri\\|template\\)" ;;,(regexp-opt '("kuri" "TODO" "README" "draft" "template")) :publishing-function org-html-publish-to-html :publishing-directory "~/public/pori/" :auto-sitemap t :sitemap-filename "index.org" :sitemap-file-entry-format "%d *%t*" :sitemap-sort-files anti-chronologically :sitemap-title "அகம்" :sitemap-style list :sitemap-sort-files anti-chronologically :html-head ,html-posts-head :html-preamble ,html-posts-preamble :html-head-extra "<link rel=\"icon\" type=\"image/x-icon\" href=\"/favicon.ico\"/>")
yantar92 · 2022-10-20 12:56
You cannot have duplicates. Only the first :exclude will be considered. :exclude "templates/" :exclude "README\\|TODO\\|draft\\|kuri\\|template"