emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Org publish hierarchies and style variable


From: Richard Riley
Subject: [Orgmode] Re: Org publish hierarchies and style variable
Date: Thu, 30 Oct 2008 11:38:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Matthew Lundin <address@hidden> writes:

> Bernt,
>
> Bernt Hansen <address@hidden> writes:
>
>> address@hidden 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.
> address@hidden
> 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 "<link rel=stylesheet
|                      href=\"./style.css\"
|                      type=\"text/css\">"
|        :auto-preamble t
|        :auto-postamble t
|        :preamble "<div id='Content'><a href='../'>Back</a> - <a 
href='http://rgrweb/default/'>Home</a>"
|        :postamble "</div>"
|        :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





reply via email to

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