emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@googlemail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: org-publish-file
Date: Thu, 04 Dec 2008 17:31:15 +0100	[thread overview]
Message-ID: <49380605.09a1660a.3268.7984@mx.google.com> (raw)


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.

When I publish the entire project then the file includes the style.

(setq org-publish-project-alist
      `(
	("web-extra"
	 :base-directory ,rgr-source
	 :publishing-directory ,rgr-publish
         :recursive t
	 :base-extension "gif\\|jpg\\|jpeg\\|png\\|css"
	 :publishing-function org-publish-attachment
	 )
	("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
	 )
	("web"
	 :components("web-org" "web-extra")
	 :base-directory ,rgr-source
	 :publishing-directory ,rgr-publish
         :recursive t
	 )
	)
      )


-- 
 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	other threads:[~2008-12-04 16:32 UTC|newest]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=49380605.09a1660a.3268.7984@mx.google.com \
    --to=rileyrgdev@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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).