aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Arkell <joarkell@cisco.com>2016-09-04 12:19:15 -0600
committerJonathan Arkell <joarkell@cisco.com>2016-09-04 12:19:15 -0600
commite36779cca46916a0fcc96ada63045c8ce6aaa3e5 (patch)
treea00d834279c31e1e0cce1f5365a105082a37d07b
parent17299741c3115fdd7cba389ad7861c151fa7edb8 (diff)
downloadox-tufte-e36779cca46916a0fcc96ada63045c8ce6aaa3e5.tar.gz
ox-tufte-e36779cca46916a0fcc96ada63045c8ce6aaa3e5.zip
Add publishing function
-rw-r--r--ox-tufte.el18
1 files changed, 18 insertions, 0 deletions
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."
"<!-- %s --><!-- %s -->")))
(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