emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Publishing multiple projects


From: Giuseppe Lipari
Subject: Re: [O] Publishing multiple projects
Date: Wed, 16 Mar 2016 11:09:09 +0000

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 à 22:01, Michael Welle <address@hidden> a écrit :
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



reply via email to

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