mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Fix publishing with org 7.9
* doc/yas-doc-helper.el: Only use org-html-publish-to-html when it's fbound.
This commit is contained in:
parent
6b04dada67
commit
fe288a156c
@ -134,15 +134,15 @@
|
|||||||
(buffer-string))
|
(buffer-string))
|
||||||
(princ yas--version (current-buffer)))))
|
(princ yas--version (current-buffer)))))
|
||||||
(proj-plist
|
(proj-plist
|
||||||
(list
|
`(,@(when (fboundp 'org-html-publish-to-html)
|
||||||
:publishing-function 'org-html-publish-to-html
|
'(:publishing-function 'org-html-publish-to-html))
|
||||||
:base-directory dir :publishing-directory dir
|
:base-directory ,dir :publishing-directory ,dir
|
||||||
:html-preamble
|
:html-preamble
|
||||||
(with-temp-buffer
|
,(with-temp-buffer
|
||||||
(insert-file-contents (expand-file-name "nav-menu.html.inc" dir))
|
(insert-file-contents (expand-file-name "nav-menu.html.inc" dir))
|
||||||
(buffer-string))
|
(buffer-string))
|
||||||
:html-postamble
|
:html-postamble
|
||||||
(concat "<hr><p class='creator'>Generated by %c on %d from "
|
,(concat "<hr><p class='creator'>Generated by %c on %d from "
|
||||||
rev "</p>\n"
|
rev "</p>\n"
|
||||||
"<p class='xhtml-validation'>%v</p>\n")))
|
"<p class='xhtml-validation'>%v</p>\n")))
|
||||||
(project (assoc "yasnippet" org-publish-project-alist)))
|
(project (assoc "yasnippet" org-publish-project-alist)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user