From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Org publish hierarchies and style variable Date: Thu, 30 Oct 2008 11:38:08 +0100 Message-ID: References: <87d4hj9zvm.fsf@fastmail.fm> <873aifs2nu.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvUvB-0005C4-5b for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 06:38:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvUv9-00059y-Cb for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 06:38:32 -0400 Received: from [199.232.76.173] (port=60240 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvUv8-00059X-W1 for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 06:38:31 -0400 Received: from main.gmane.org ([80.91.229.2]:41866 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KvUv8-0008TK-2j for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 06:38:30 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KvUv4-0004yk-6O for emacs-orgmode@gnu.org; Thu, 30 Oct 2008 10:38:26 +0000 Received: from e179195030.adsl.alicedsl.de ([85.179.195.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Oct 2008 10:38:26 +0000 Received: from rileyrgdev by e179195030.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Oct 2008 10:38:26 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matthew Lundin writes: > Bernt, > > Bernt Hansen writes: > >> mdl@imapmail.org writes: > ... >>> My question: Instead of this method, which I find a little tedious, >>> I've created a hardlink to the master css directory in each >>> subdirectory of my project. As a result the, css files get copied to >>> each subdirectory in my public web directory and I only need to >>> specify a single style option in my org-publish-alist. > ... >> >> I create docs in subdirectories under http://doc.norang.ca/ and each >> document uses the css file in the root directory. All the documents use >> the same CSS file and therefore look the same. You could of course >> specify a fixed address for the stylesheet - there's no requirement to >> use relative addressing for your stylesheets at all (i.e. I could have >> replaced "/org.css" with "http://doc.norang.ca/org.css" and I'm free to >> use that stylesheet for any page (even stuff not in the doc.norang.ca >> domain) > > Thanks for this very simple solution. > > Best, > > Matt > > > _______________________________________________ > 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 > I dont know if this is appropriate or how late I came into this discussion but I publish a web thats a few directories deep and I simply have a dummy style at each level which cascades back to the master. Something like ,---- style.css | @import url(../style.css); `---- combined with: ,---- | ("web-org" | :base-directory "~/webs/rgr/" | :publishing-directory "/ssh:rgrweb:/home/shamrock/rgrweb/" | :base-extension "org" | :publishing-function org-publish-org-to-html | :recursive t | :section-numbers nil | :style "" | :auto-preamble t | :auto-postamble t | :preamble "
Back - Home" | :postamble "
" | :author nil | ) | `---- in my org-publish-project-alist I don't know if things have barreled along so quickly that this is more patching and sticking plaster than a solid solution but it works well for me. regards richard. -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970