emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mehul Sanghvi <mehul.sanghvi@gmail.com>
To: ML Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: How to use my own stylesheet for publishing to html ?
Date: Mon, 12 Aug 2013 18:53:07 -0400	[thread overview]
Message-ID: <CAPo9-A9aeNdx81GL-uqqAPG64dDDqW1Q4ORXwxL-86pO-K3kRg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2541 bytes --]

My project setup:


(setq org-publish-project-alist
      '(
        ;; ... add all the components here (see below)...

;;("inherit-styles-and-js"
;; :base-directory "~/org/new-site/"
;; :recursive t
;; :base-extenstion "css\\|js"
;; :publishing-directory "~/public_html/new-site/"
;; :publishing-function org-publish-attachment
;; )

        ("org-notes"
         :base-directory "~/org/new-site/"
         :base-extension "org"
 :section-numbers nil
         :publishing-directory "~/public_html/new-site/"
         :recursive t
         :publishing-function org-html-publish-to-html
         :headline-levels 4             ; Just the default for this project.
         :auto-preamble t
         )

        ("org-static"
         :base-directory "~/org/new-site/"
         :base-extension
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
         :publishing-directory "~/public_html/new-site/"
         :recursive t
         :publishing-function org-publish-attachment
         )

        ("org" :components ("org-notes" "org-static"))

        ))


I have the following in a template file:


#+DATE: <2013-08-09 Fri>
#+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline
#+OPTIONS: author:t c:nil creator:comment d:nil date:t e:t email:nil
#+OPTIONS: f:t inline:t num:nil p:nil pri:nil stat:t tags:not-in-toc
#+OPTIONS: tasks:t tex:t timestamp:t toc:t todo:t |:t
#+CREATOR: Emacs 23.4.1 (Org mode 8.0.7)
#+DESCRIPTION:
#+EXCLUDE_TAGS: noexport
#+KEYWORDS:
#+LANGUAGE: en
#+SELECT_TAGS: export
#+OPTIONS: html-link-use-abs-url:nil html-postamble:auto
#+OPTIONS: html-preamble:t html-scripts:t html-style:t
#+OPTIONS: html5-fancy:nil tex:t
#+CREATOR: <a href="http://www.gnu.org/software/emacs/">Emacs</a> 23.4.1
(<a href="http://orgmode.org">Org</a> mode 8.0.7)
#+HTML_CONTAINER: div
#+HTML_DOCTYPE: xhtml-strict
#+HTML_HEAD:
#+HTML_HEAD_EXTRA:
#+HTML_LINK_HOME:
#+HTML_LINK_UP:
#+HTML_MATHJAX:
#+INFOJS_OPT:
#+STYLE: <link rel="stylesheet" type="text/css" href="css/worg.css" />



and in my index.org file I do:

#+SETUPFILE: ~/Env/emacs/_org-templates/level-0.org


Yet when I publish the project,  although the stylesheet gets copied to the
right place, it is not getting used in the generated index.html.  It is
using org-info.js instead.  I am following the tutorial for publishing that
is in the Worg.

I am using Orgmode 8.0.3 and the behaviour is also exhibited in the latest
from git.


Any pointers on what I'm doing wrong or have missed ?


cheers,

     mehul

-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

[-- Attachment #2: Type: text/html, Size: 4445 bytes --]

             reply	other threads:[~2013-08-12 22:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-12 22:53 Mehul Sanghvi [this message]
2013-08-13  2:02 ` How to use my own stylesheet for publishing to html ? Mehul Sanghvi
2013-08-13  6:56   ` Sebastien Vauban
2013-08-13 14:06     ` Mehul Sanghvi

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=CAPo9-A9aeNdx81GL-uqqAPG64dDDqW1Q4ORXwxL-86pO-K3kRg@mail.gmail.com \
    --to=mehul.sanghvi@gmail.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).