From mboxrd@z Thu Jan 1 00:00:00 1970 From: chris Subject: How to publish a whole website resource with org-publish, and how to set :components () ? Date: Wed, 20 Nov 2013 13:54:53 +0800 Message-ID: <20131120055453.GA27590@stardiviner> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj0ku-00025a-KQ for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 00:55:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vj0ko-0003HK-MY for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 00:55:16 -0500 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]:53330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vj0ko-0003H7-BR for emacs-orgmode@gnu.org; Wed, 20 Nov 2013 00:55:10 -0500 Received: by mail-pd0-f178.google.com with SMTP id y10so2277841pdj.9 for ; Tue, 19 Nov 2013 21:55:08 -0800 (PST) Received: from localhost ([112.10.9.53]) by mx.google.com with ESMTPSA id ie6sm8676131pbc.6.2013.11.19.21.55.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 19 Nov 2013 21:55:07 -0800 (PST) Content-Disposition: inline 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: Emacs Org-mode --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 1. What I want to do: I want to publish *all* my resources(which I choose) to public. It means any filetype files under the :base-directory. And I hope my org file inline source code, babel, inline images etc can be displayed correctly. Anyway, just like a normal website. (This sentence is = not a good description, but it is my purpose) Here is what I set. #+BEGIN_SRC emacs-lisp (setq org-publish-project-alist '(("Blog" :base-directory "~/Org/Diary/Public" :recursive t ) ("Wiki" :base-directory "~/Org/Wiki" :base-extension 'any ;; :exclude ;; :include :recursive t ) ;; ("Gallery" ;; ;; TODO :base-directory "~/Org/" ;; :recursive t ;; ) ("Website" :components ("Blog" "Gallery") ;; TODO can I set those variable at here for all of above publishi= ngs ? :publishing-directory "~/WWW/Org-publish" :publishing-function org-html-publish-to-html :htmlized-source t :section-number t ;; :language ;;; [ author ] :with-author "stardiviner" :with-email "numbchild@gmail.com" :with-footnotes "Get over the world!" ;; :with-latex :with-sub-superscript t :with-tables t :with-tags t ;;; [ tasks ] ;; :with-tasks t ;; :with-planning :with-todo-keywords ;; :with-priority :with-timestamps t ;; :with-toc ;;; [ html ] :html-doctype "html5" :html-xml-declaration t ;;; [ sitemap ] :auto-sitemap t ;; When non-nil, remove filenames' extensions from the generated s= itemap. Useful to have cool URIs. :sitemap-sans-extension t ;;; [ index ] :makeindex t ) ) ) #+END_SRC 2. Question one: Can I set some properties in the *meta-project* (which has :components) ? 3. Question two: I feel my setting is not good. Does anyone have a good template for my situ= ation to let me reference? I have checked out http://orgmode.org documentation, and it's example. --=20 [ stardiviner ] Kill the world if you want. That's it. IRC(freenode): stardiviner \\ Twitter: @numbchild \\ --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJSjE6tAAoJELjEuOVHwyQzo0AH/igrV+lknXRv63WvEqpTLV7A y/37WkXH+mggbX49x45pxsTK7sccouJG3Goik0DtYvXEiSwYSSDIKsM5BHutCQhH AWGZGB4y24onZNJJ3uTid26q+fsyM5bZqsE0VC1Os0G0Z5bq7Bse/P+7RB78EMbt 3C3BjJ3ur04sy5nAp6KM8ncwrUE1tNJKQA/cyaS0jFXBNojqGAhpbomGdnEx4nmJ 6Xiuk6epZF+0qeqScSBgf4mUIcvtBjqd9ZGovgL/SZW4RurB3mx1gxMIM3n4+Xx8 JN31JOt539T4ePJiGppUxD0rLtckmkUQQTiBRtRFFoCwrQNS2RvIkm8lBPqqMGU= =A/iM -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--