Merge pull request #85 from EvanMisshula/org-publish

added publishing function for websites
This commit is contained in:
Yujie Wen 2014-12-03 22:06:16 +08:00
commit 08db194120
1 changed files with 13 additions and 0 deletions

View File

@ -827,6 +827,19 @@ info is a plist holding export options."
(interactive)
(browse-url-of-file (expand-file-name (org-reveal-export-to-html async subtreep visible-only body-only ext-plist))))
;;;###autoload
(defun org-reveal-publish-to-reveal
(plist filename pub-dir)
"Publish an org file to Html.
FILENAME is the filename of the Org file to be published. PLIST
is the property list for the given project. PUB-DIR is the
publishing directory.
Return output file name."
(org-publish-org-to 'reval filename ".html" plist pub-dir))
(provide 'ox-reveal)
;;; ox-reveal.el ends here