From e36779cca46916a0fcc96ada63045c8ce6aaa3e5 Mon Sep 17 00:00:00 2001 From: Jonathan Arkell Date: Sun, 4 Sep 2016 12:19:15 -0600 Subject: Add publishing function --- ox-tufte.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ox-tufte.el b/ox-tufte.el index 6cefb68..215776c 100644 --- a/ox-tufte.el +++ b/ox-tufte.el @@ -214,6 +214,24 @@ Return output file's name." ""))) (org-export-to-file 'tufte-html outfile async subtreep visible-only))) + +;;; publishing function + +;;;###autoload +(defun org-html-publish-to-tufte-html (plist filename pub-dir) + "Publish an org file to Tufte-styled HTML. + +PLIST is the property list for the given project. FILENAME is +the filename of the Org file to be published. PUB-DIR is the +publishing directory. + +Return output file name." + (org-publish-org-to 'tufte-html filename + (concat "." (or (plist-get plist :html-extension) + org-html-extension + "html")) + plist pub-dir)) + (provide 'ox-tufte) ;;; ox-tufte.el ends here -- cgit