emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: New exporter and publishing to HTML with styles
Date: Sun, 07 Apr 2013 17:42:31 -0400	[thread overview]
Message-ID: <87zjxanhko.fsf@norang.ca> (raw)

Hi Nicolas,

I'm playing with the new exporter and publishing.  Everything seems to
be good except my style sheet details are missing.

There are :style entries in my org-publish-project-alist which seem to
be ignored -- there are no style details in the published HTML file
(see http://norang.ca/tmp/org-mode.html)

I'm publishing my org-mode.org page to a temporary location to see if it
is working as expected before updating the main site.

The stylesheet I want is specified with 
:style "<link rel=\"stylesheet\" href=\"http://doc.norang.ca/org.css\" type=\"text/css\" />"
but I don't get any style information in the resulting published file.

Is this supposed to work or do I need to add #+HTML_HEAD to each file
with the stylesheet information?  I'd prefer to set it only once for
the publishing location if possible (as it worked with the old
publishing system)

Thanks,
Bernt

The following was shortened to only the tmp publishing location settings.
--8<---------------cut here---------------start------------->8---
(setq org-publish-project-alist
      ;
      ; http://www.norang.ca/  (norang website)
      ; norang-org are the org-files that generate the content
      ; norang-extra are images and css files that need to be included
      ; norang is the top-level project that gets published
      (quote (("tmp-org"
	       :base-directory "/tmp/publish/"
	       :publishing-directory "/ssh:www-data@www:~/www.norang.ca/htdocs/tmp"
	       :recursive t
	       :section-numbers nil
	       :table-of-contents nil
	       :base-extension "org"
	       :publishing-function (org-html-publish-to-html org-org-publish-to-org)
	       :style "<link rel=\"stylesheet\" href=\"http://doc.norang.ca/org.css\" type=\"text/css\" />"
	       :plain-source t
	       :htmlized-source t
	       :style-include-default nil
	       :auto-sitemap t
	       :sitemap-filename "index.html"
	       :sitemap-title "Test Publishing Area"
	       :sitemap-style "tree"
	       :author-info t
	       :creator-info t)
	      ("tmp-extra"
	       :base-directory "/tmp/publish/"
	       :publishing-directory "/ssh:www-data@www:~/www.norang.ca/htdocs/tmp"
	       :base-extension "css\\|pdf\\|png\\|jpg\\|gif"
	       :publishing-function org-publish-attachment
	       :recursive t
	       :author nil)
	      ("tmp"
	       :components ("tmp-org" "tmp-extra")))))--8<---------------cut here---------------end--------------->8---

             reply	other threads:[~2013-04-07 21:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-07 21:42 Bernt Hansen [this message]
2013-04-07 21:46 ` New exporter and publishing to HTML with styles Nicolas Goaziou
2013-04-07 22:32   ` Bernt Hansen

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=87zjxanhko.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.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 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).