I use org-publish to publish HTML exports of org-mode files quite often to share documents with my coworkers, however, I generate a lot of diagrams with plantuml
and gnuplot
. These diagrams aren't sent to the remote server when I export the file with C-c C-e P f
.
My configuration looks like:
("org-pastebin"
:base-directory "~/org/"
:base-extension "org\\|zsh\\|html\\|png"
:publishing-directory "/ssh:user@server:~/public_html/org/"
:publishing-function org-html-publish-to-html
:with-toc t
:html-preamble t)
If I have an org-mode file that looks like:
* Header
Some prose
#+BEGIN_SRC plantuml :file my-file.png :results raw
...
#+END_SRC
#+RESULTS:
[[file:my-file.png]]
How can I get Emacs to automatically publish the linked file (my-file.png) in this case? Even if I publish the whole project the images are not copied.