From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuseppe Lipari Subject: Re: Publishing multiple projects Date: Wed, 16 Mar 2016 11:09:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113c87b4995b64052e288bd9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag9KQ-0000wk-BU for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 07:09:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag9KK-0000sc-Hq for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 07:09:26 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:36115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag9KK-0000s8-7u for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 07:09:20 -0400 Received: by mail-wm0-x232.google.com with SMTP id l124so44023066wmf.1 for ; Wed, 16 Mar 2016 04:09:19 -0700 (PDT) In-Reply-To: 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: Michael Welle , emacs-orgmode@gnu.org --001a113c87b4995b64052e288bd9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I usually define each project into a separate project.el file, and I use a batch scripts for publishing, something like this: publish.sh: ----- emacs --batch -l batch_project.el --kill ----- And my project.el ----- (add-to-list 'load-path "~/elisp/org-mode/lisp") (add-to-list 'load-path "~/elisp/org-mode/contrib/lisp") (require 'org) (require 'htmlize) (setq c-standard-font-lock-fontify-region-function 'font-lock-default-fontify-region) (setq org-export-backends (quote (ascii html icalendar latex odt md))) (org-babel-do-load-languages 'org-babel-load-languages '((dot . t) (emacs-lisp . t) (python . t) (ditaa . t))) (custom-set-variables '(org-confirm-babel-evaluate nil)) (require 'ox-publish) (org-babel-lob-ingest "~/Copy/Documents/www/org-web/ navbar-code.org") (setq org-publish-project-alist '( ("org-notes" :base-directory "~/Copy/Documents/www/org-web/" :base-extension "org" :publishing-directory "~/Copy/Documents/www/public_html" :recursive t :publishing-function org-html-publish-to-html :headline-levels 5 ; Just the default for this project. :auto-preamble t ) ("org-static" :base-directory "~/Copy/Documents/www/org-web/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|config\\|sh\\|zip\\|c= \\|h" :publishing-directory "~/Copy/Documents/www/public_html" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static")) ;; ... add all the components here (see below)... )) ; (org-publish-remove-all-timestamps) (org-publish-project "org") ---- Hope this helps Giuseppe Lipari Le lun. 14 mars 2016 =C3=A0 22:01, Michael Welle a =C3= =A9crit : > Hello, > > I want to publish about 20 different projects into one web site. The > projects don't share a common root directory (except /). Does that mean I > need 41 (20 projects + 20 project-static + 1 meta project) entries in my > org-publish-project-alist? > > Regards > hmw > > > --001a113c87b4995b64052e288bd9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I usually define each projec= t into a separate project.el file, and I use a batch scripts for publishing= , something like this:

publish.sh:=C2=A0
-----
em= acs --batch -l batch_project.el --kill
-----

And my pr= oject.el
-----
(add-to-list 'load-path "~/elisp/org-mode/lis= p") (add-to-list 'load-path "~/elisp/org-mode/contrib/lisp") (require 'org) (require 'htmlize)=20 (setq c-standard-font-lock-fontify-region-function 'font-lock-default-fontify-region) (setq org-export-backends (quote (ascii html icalendar latex odt md))) = =20 (org-babel-do-load-languages 'org-babel-load-languages '((dot . t) (emacs-lisp . t) (python . t) (ditaa . t))) (custom-set-variables '(org-confirm-babel-evaluate nil)) (require 'ox-publish) (org-babel-lob-ingest "~/Copy/Documents/www/org-web/navbar-code.org") (setq org-publish-project-alist '( ("org-notes" :base-directory "~/Copy/Documents/www/org-web/" :base-extension "org" :publishing-directory "~/Copy/Documents/www/public_html" :recursive t :publishing-function org-html-publish-to-html :headline-levels 5 ; Just the default for this project. :auto-preamble t ) =09 ("org-static" :base-directory "~/Copy/Documents/www/org-web/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\= \|config\\|sh\\|zip\\|c\\|h" :publishing-directory "~/Copy/Documents/www/public_html" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static"= )) ;; ... add all the components here (see below)... )) ; (org-publish-remove-all-timestamps) (org-publish-project "org")
----

Hope this helps

Giuseppe Lipar= i





Le=C2=A0lun. 14 mars 2016 =C3=A0=C2=A022:01, Mi= chael Welle <mwe012008@gmx.net&= gt; a =C3=A9crit=C2=A0:
Hello,

I want to publish about 20 different projects into one web site. The
projects don't share a common root directory (except /). Does that mean= I
need 41 (20 projects + 20 project-static + 1 meta project) entries in my org-publish-project-alist?

Regards
hmw


--001a113c87b4995b64052e288bd9--