emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Question about org-publish-project-alist


From: Thomas Moyer
Subject: [O] Question about org-publish-project-alist
Date: Tue, 14 Apr 2015 08:51:57 -0400

Is it possible (and I just have the wrong syntax) to do the following:

(defvar base-dir "~/Documents/org/")
(defvar pub-dir "~/Public/notes/")

(setq org-publish-project-alist '(
    ("org"
        :base-directory base-dir
        :base-extension "org"
        :publishing-directory pub-dir
        :recursive t
        :publishing-function org-html-publish-to-html
        :exclude "level-..org"
    )
    ("static"
        :base-directory base-dir
        :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
        :publishing-directory pub-dir
        :recursive t
        :publishing-function org-publish-attachment
    )
("project-root" :components ("org" "static")))
)

When I have the above code and I call (org-publish-project "project-root"), I get the following error.

Wrong type argument: stringp, base-dir

Thanks.

Tom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]