From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Moyer Subject: Re: Question about org-publish-project-alist Date: Wed, 15 Apr 2015 07:20:43 -0400 Message-ID: References: <87618ylthz.fsf@163.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1147e8e8bbaf410513c189a1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiLN7-0003Hh-C1 for emacs-orgmode@gnu.org; Wed, 15 Apr 2015 07:20:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiLN6-0001qR-CS for emacs-orgmode@gnu.org; Wed, 15 Apr 2015 07:20:45 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:32916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiLN6-0001qM-85 for emacs-orgmode@gnu.org; Wed, 15 Apr 2015 07:20:44 -0400 Received: by qkx62 with SMTP id 62so76016977qkx.0 for ; Wed, 15 Apr 2015 04:20:44 -0700 (PDT) In-Reply-To: <87618ylthz.fsf@163.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Feng Shu Cc: emacs-orgmode@gnu.org --001a1147e8e8bbaf410513c189a1 Content-Type: text/plain; charset=UTF-8 That was what finally worked. Thanks! Tom On Apr 14, 2015 9:49 AM, "Feng Shu" wrote: > > > (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")))) > > -- > > > --001a1147e8e8bbaf410513c189a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

That was what finally worked. Thanks!

Tom

On Apr 14, 2015 9:49 AM, "Feng Shu" &l= t;tumashu@163.com> wrote:


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

(setq org-publish-project-alist
=C2=A0 =C2=A0 =C2=A0 `(("org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-directory ,base-dir
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-extension "org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-directory ,pub-dir
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:recursive t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-function org-html-publish-to-= html
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:exclude "level-..org"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ("static"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-directory base-dir
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:base-extension "css\\|js\\|png\\|jp= g\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-directory pub-dir
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:recursive t
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:publishing-function org-publish-attachme= nt
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ("project-root" :components ("or= g" "static"))))

--


--001a1147e8e8bbaf410513c189a1--