emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Multiple publishing projects
@ 2009-10-06  6:33 Thomas S. Dye
  2009-10-06 10:05 ` Ian Barton
  2009-10-06 17:19 ` Sebastian
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas S. Dye @ 2009-10-06  6:33 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 844 bytes --]

Aloha all,

Apologies in advance if the answer to this query is obvious.  I've  
looked through the documentation but can't find how to specify  
multiple publishing projects.  There are examples of simple projects  
and projects with multiple components, but no example that I can find  
of a specification for multiple projects.  I'm guessing this has to do  
with org-publish-project-alist, and that my rudimentary LISP  
comprehension prevents me from seeing the simple answer.    I've set  
up one publishing project that works fine.  I just can't figure out  
how to add a second one.

If someone can offer an example, or a pointer to an example I've  
overlooked, I'll be appreciative.

All the best,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com



[-- Attachment #1.2: Type: text/html, Size: 3289 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple publishing projects
  2009-10-06  6:33 Multiple publishing projects Thomas S. Dye
@ 2009-10-06 10:05 ` Ian Barton
  2009-10-06 17:24   ` Thomas S. Dye
  2009-10-06 17:19 ` Sebastian
  1 sibling, 1 reply; 4+ messages in thread
From: Ian Barton @ 2009-10-06 10:05 UTC (permalink / raw)
  Cc: emacs-orgmode

> Apologies in advance if the answer to this query is obvious.  I've 
> looked through the documentation but can't find how to specify multiple 
> publishing projects.  There are examples of simple projects and projects 
> with multiple components, but no example that I can find of a 
> specification for multiple projects.  I'm guessing this has to do with 
> org-publish-project-alist, and that my rudimentary LISP comprehension 
> prevents me from seeing the simple answer.    I've set up one publishing 
> project that works fine.  I just can't figure out how to add a second one.
> 
> If someone can offer an example, or a pointer to an example I've 
> overlooked, I'll be appreciative.
> 
I don't know if this is the "right" way, but my .emacs looks like this:

(setq org-publish-project-alist
       '(

        ;; ... add all the components here (see below)...
       ("org-notes"
           :base-directory "~/nfs/firewall/Documents/org/"
           :base-extension "org"
           :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
           :recursive t
           :publishing-function org-publish-org-to-html
           :headline-levels 4             ; Just the default for this 
project.
           :auto-preamble t
           :auto-index t
           :index-filename "sitemap.org"
           :index-title "Sitemap"
       )

     ("org-static"
           :base-directory "~/nfs/firewall/Documents/org/"
           :base-extension 
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php"
           :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
           :recursive t
           :publishing-function org-publish-attachment)

     ("org" :components ("org-notes" "org-static"))

      ("org-mobile"
           :base-directory "~/nfs/firewall/Documents/org/"
           :base-extension "org"
           :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
           :recursive t
           :publishing-function org-publish-org-to-html
           :headline-levels 4             ; Just the default for this 
project.
           :auto-preamble t
           :auto-index t
           :html-extension "php"
           :index-filename "sitemap.org"
           :index-title "Sitemap"
       )


     ("mobile" :components ("org-mobile" "org-static"))


This gives me 2 projects "org" and "mobile". Note that you can mix and 
match bits -  have used org-static in both my projects.

Ian.


       ))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple publishing projects
  2009-10-06  6:33 Multiple publishing projects Thomas S. Dye
  2009-10-06 10:05 ` Ian Barton
@ 2009-10-06 17:19 ` Sebastian
  1 sibling, 0 replies; 4+ messages in thread
From: Sebastian @ 2009-10-06 17:19 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1870 bytes --]

Am Montag, den 05.10.2009, 20:33 -1000 schrieb Thomas S. Dye:
> Aloha all,
> 
> 
> Apologies in advance if the answer to this query is obvious.  I've
> looked through the documentation but can't find how to specify
> multiple publishing projects.  There are examples of simple projects
> and projects with multiple components, but no example that I can find
> of a specification for multiple projects.  I'm guessing this has to do
> with org-publish-project-alist, and that my rudimentary LISP
> comprehension prevents me from seeing the simple answer.    I've set
> up one publishing project that works fine.  I just can't figure out
> how to add a second one.


`org-publish-projects-alist' is a list of projects.


(setq org-publish-project-alist
      '(

	;; Place all projects here

       )



There are two different kinds of such projects.

The first kind of project is a real project definition.
This is an example of such a real project:

        ("worg-notes"
         :base-directory "~/org/Worg/"
         :auto-index nil ; generate index.org automagically
         :recursive t
         :base-extension "org"
         :publishing-directory "~/develop/htdocs/worg/"
         :publishing-function org-publish-org-to-html
         :headline-levels 3
         :auto-preamble t  )


The other kind of project is a compound project. A compound project
consists entirely of projects itself (besides it's own name):


        ("worg" :components ("worg-notes" "worg-static"))


Those compound projects exist for convenience. In this example, you
can simply export the `worg' project, which in turn will trigger the
publishing of `worg-notes' and `worg-static'.



You may place an arbitrary number of real and compound projects in
`org-publish-projects-alist'.




Best wishes

    Sebastian




[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2149 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Multiple publishing projects
  2009-10-06 10:05 ` Ian Barton
@ 2009-10-06 17:24   ` Thomas S. Dye
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas S. Dye @ 2009-10-06 17:24 UTC (permalink / raw)
  To: lists; +Cc: emacs-orgmode

Thanks Ian.  Your example helped me make sense of the Org manual,  
which was a bit terse for my comprehension in this instance.  My  
second publishing project is up and running now and I'm looking  
forward to the third.

All the best,
Tom

On Oct 6, 2009, at 12:05 AM, Ian Barton wrote:

>> Apologies in advance if the answer to this query is obvious.  I've  
>> looked through the documentation but can't find how to specify  
>> multiple publishing projects.  There are examples of simple  
>> projects and projects with multiple components, but no example that  
>> I can find of a specification for multiple projects.  I'm guessing  
>> this has to do with org-publish-project-alist, and that my  
>> rudimentary LISP comprehension prevents me from seeing the simple  
>> answer.    I've set up one publishing project that works fine.  I  
>> just can't figure out how to add a second one.
>> If someone can offer an example, or a pointer to an example I've  
>> overlooked, I'll be appreciative.
> I don't know if this is the "right" way, but my .emacs looks like  
> this:
>
> (setq org-publish-project-alist
>      '(
>
>       ;; ... add all the components here (see below)...
>      ("org-notes"
>          :base-directory "~/nfs/firewall/Documents/org/"
>          :base-extension "org"
>          :publishing-directory "~/nfs/firewall/public_html/org- 
> mobile/"
>          :recursive t
>          :publishing-function org-publish-org-to-html
>          :headline-levels 4             ; Just the default for this  
> project.
>          :auto-preamble t
>          :auto-index t
>          :index-filename "sitemap.org"
>          :index-title "Sitemap"
>      )
>
>    ("org-static"
>          :base-directory "~/nfs/firewall/Documents/org/"
>          :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\| 
> ogg\\|swf\\|php"
>          :publishing-directory "~/nfs/firewall/public_html/org- 
> mobile/"
>          :recursive t
>          :publishing-function org-publish-attachment)
>
>    ("org" :components ("org-notes" "org-static"))
>
>     ("org-mobile"
>          :base-directory "~/nfs/firewall/Documents/org/"
>          :base-extension "org"
>          :publishing-directory "~/nfs/firewall/public_html/org- 
> mobile/"
>          :recursive t
>          :publishing-function org-publish-org-to-html
>          :headline-levels 4             ; Just the default for this  
> project.
>          :auto-preamble t
>          :auto-index t
>          :html-extension "php"
>          :index-filename "sitemap.org"
>          :index-title "Sitemap"
>      )
>
>
>    ("mobile" :components ("org-mobile" "org-static"))
>
>
> This gives me 2 projects "org" and "mobile". Note that you can mix  
> and match bits -  have used org-static in both my projects.
>
> Ian.
>
>
>      ))
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-06 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-06  6:33 Multiple publishing projects Thomas S. Dye
2009-10-06 10:05 ` Ian Barton
2009-10-06 17:24   ` Thomas S. Dye
2009-10-06 17:19 ` Sebastian

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).