all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: Richard Riley <rileyrgdev@googlemail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: org-publish-file
Date: Thu, 04 Dec 2008 11:28:16 -0600	[thread overview]
Message-ID: <87d4g7zw7j.fsf@fastmail.fm> (raw)
In-Reply-To: <49380605.09a1660a.3268.7984@mx.google.com> (Richard Riley's message of "Thu\, 04 Dec 2008 17\:31\:15 +0100")


Hi Richard,

Richard Riley <rileyrgdev@googlemail.com> 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.

[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 "<link rel=stylesheet
>                     href=\"./style.css\"
>                     type=\"text/css\">"
>	 :auto-preamble t
>	 :auto-postamble t
>	 :preamble ,(format "<div id='Content'><a href='../'>Back</a> - <a href='%s'>Home</a>" rgr-home)
>	 :postamble "</div>"
>	 :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".

Regards,

Matt

  reply	other threads:[~2008-12-04 17:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 16:31 org-publish-file Richard Riley
2008-12-04 17:28 ` Matthew Lundin [this message]
2008-12-04 18:06   ` org-publish-file Richard Riley

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

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

  git send-email \
    --in-reply-to=87d4g7zw7j.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrgdev@googlemail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.