Skip to content

Commit 8895760

Browse files
committed
update publishing to work with the latest Org-mode
1 parent e9c0609 commit 8895760

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: starter-kit-publish.org

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,25 @@ the documentation for the Starter Kit to html.
1212
#+begin_src emacs-lisp :results silent
1313
(unless (boundp 'org-publish-project-alist)
1414
(setq org-publish-project-alist nil))
15-
15+
1616
(let* ((this-dir (file-name-directory (or load-file-name buffer-file-name)))
17+
(starter-kit-dir this-dir)
1718
(org-export-htmlize-output-type 'css)
1819
(load-path (cons (expand-file-name "elpa" this-dir) load-path))
1920
(package-archives '(("original" . "http://tromey.com/elpa/"))))
21+
;; load the basic starter kit
22+
(org-babel-load-file (expand-file-name "starter-kit.org" this-dir))
2023
;; load up htmlize
2124
(package-initialize)
2225
(unless (functionp 'htmlize)
2326
(starter-kit-install-if-needed 'htmlize))
2427
(require 'htmlize)
25-
(org-export-htmlize-generate-css)
28+
(org-html-htmlize-generate-css)
2629
;; define the org-publish-project for the starter kit
2730
(add-to-list
2831
'org-publish-project-alist
2932
`("starter-kit-documentation"
33+
:publishing-function org-html-publish-to-html
3034
:base-directory ,this-dir
3135
:base-extension "org"
3236
:style "<link rel=\"stylesheet\" href=\"emacs.css\" type=\"text/css\"/>

0 commit comments

Comments
 (0)