File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,25 @@ the documentation for the Starter Kit to html.
12
12
#+begin_src emacs-lisp :results silent
13
13
(unless (boundp 'org-publish-project-alist)
14
14
(setq org-publish-project-alist nil))
15
-
15
+
16
16
(let* ((this-dir (file-name-directory (or load-file-name buffer-file-name)))
17
+ (starter-kit-dir this-dir)
17
18
(org-export-htmlize-output-type 'css)
18
19
(load-path (cons (expand-file-name "elpa" this-dir) load-path))
19
20
(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))
20
23
;; load up htmlize
21
24
(package-initialize)
22
25
(unless (functionp 'htmlize)
23
26
(starter-kit-install-if-needed 'htmlize))
24
27
(require 'htmlize)
25
- (org-export -htmlize-generate-css)
28
+ (org-html -htmlize-generate-css)
26
29
;; define the org-publish-project for the starter kit
27
30
(add-to-list
28
31
'org-publish-project-alist
29
32
`("starter-kit-documentation"
33
+ :publishing-function org-html-publish-to-html
30
34
:base-directory ,this-dir
31
35
:base-extension "org"
32
36
:style "<link rel=\"stylesheet\" href=\"emacs.css\" type=\"text/css\"/>
You can’t perform that action at this time.
0 commit comments