emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giuseppe Lipari <giulipari@gmail.com>
To: Michael Welle <mwe012008@gmx.net>, emacs-orgmode@gnu.org
Subject: Re: Publishing multiple projects
Date: Wed, 16 Mar 2016 11:09:09 +0000	[thread overview]
Message-ID: <CABHo5SDJ1odBtQKtxrNqHrsmoiDaDdQ2pw8oe7b76G+cU-rang@mail.gmail.com> (raw)
In-Reply-To: <o7ljrcxnvb.ln2@news.c0t0d0s0.de>

[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]

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 <mwe012008@gmx.net> 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
>
>
>

[-- Attachment #2: Type: text/html, Size: 2741 bytes --]

       reply	other threads:[~2016-03-16 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <o7ljrcxnvb.ln2@news.c0t0d0s0.de>
2016-03-16 11:09 ` Giuseppe Lipari [this message]
     [not found]   ` <1btorcxt8h.ln2@news.c0t0d0s0.de>
2016-03-16 21:26     ` Publishing multiple projects Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABHo5SDJ1odBtQKtxrNqHrsmoiDaDdQ2pw8oe7b76G+cU-rang@mail.gmail.com \
    --to=giulipari@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mwe012008@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).