From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: org-publish-file Date: Thu, 04 Dec 2008 19:06:27 +0100 Message-ID: <49381c54.170d660a.6b58.0b44@mx.google.com> References: <49380605.09a1660a.3268.7984@mx.google.com> <87d4g7zw7j.fsf@fastmail.fm> 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 1L8IhR-0006Ne-JI for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 13:13:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8IhQ-0006Mx-4W for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 13:13:17 -0500 Received: from [199.232.76.173] (port=42547 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8IhP-0006Mk-Jc for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 13:13:15 -0500 Received: from yx-out-1718.google.com ([74.125.44.152]:57538) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8IhN-00016q-Ra for emacs-orgmode@gnu.org; Thu, 04 Dec 2008 13:13:14 -0500 Received: by yx-out-1718.google.com with SMTP id 34so3633314yxf.66 for ; Thu, 04 Dec 2008 10:13:12 -0800 (PST) In-Reply-To: <87d4g7zw7j.fsf@fastmail.fm> (Matthew Lundin's message of "Thu, 04 Dec 2008 11:28:16 -0600") 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: Matthew Lundin Cc: org-mode , Richard Riley Matthew Lundin writes: > Hi Richard, > > Richard Riley writes: > >> If I edit a file in an org web subdirectory and then publish that file it does >> not get published with the style sheet link content. >> >> e.g I have a file index.org in rgr-source/bike and when I publish it the >> destination rgr-source/bike/index.html does not include the :style as >> specified in web-org below. >> > I assume you mean that the exported html does not contain the > stylesheet line at all. I can't seem to replicate this behavior. When > I publish org files recursively, the link to the stylesheet appears in > all exported html files, regardless of their directory level. I am referring to publishing the single file using org-publish-file Possibly its as designed, but I'm not sure that would be the right thing. > > [snip] >> ("web-org" >> :base-directory ,rgr-source >> :publishing-directory ,rgr-publish >> :recursive t >> :base-extension "org" >> :publishing-function org-publish-org-to-html >> :section-numbers nil >> :style "> href=\"./style.css\" >> type=\"text/css\">" >> :auto-preamble t >> :auto-postamble t >> :preamble ,(format "
Back - Home" rgr-home) >> :postamble "
" >> :author nil >> ) > [snip] > > Is the css file also exported to the subdirectory "/rgr-source/bike"? > If not, the relative link won't find the file. I believe you'll either > need to use an absolute link or specify a different relative link > (e.g., "../style.css") using the #+STYLE option in > "/rgr-source/bike/index.org". Each dir has a style.css which includes ../style.css. That is not the issue. Recursive publish works fine. > > Regards, > > Matt -- 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