Hello,

I would like to discuss the introduction of an additional hook in
ox-publish.el.

Right now, there only exists `org-publish-after-publishing-hook' which
runs each time a single file is published. I think the introduction of
an "after-publishing-project" version of the hook would be useful, so
some package could hook into it to add some "per-project" logic.

This would overlap with `:completion-function', as it would
be run at the same place with the same argument. The benefit is solely
to enable packages to act on projects after publishing, without having
the user to alter his projects' configuration (besides requiring the
package of course).

The background for this addition is the org-publish-rss package[1]
(announced on this mailing list[2]), in order to integrate the
functionality of the package more seamlessly.

If nothing stand in the way, what about introducing the
`org-publish-after-publishing-project-hook' hook variable, have it run
in the `org-publish-projects' function and renaming
`org-publish-after-publishing-hook' to
`org-publish-after-publishing-file-hook'?
I would of provide the patch.

Cheers,

[1] https://git.sr.ht/~taingram/org-publish-rss/
[2] https://list.orgmode.org/[email protected]/

-- 
Thibaut
https://thibaut.dev/

Reply via email to