all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to use my own stylesheet for publishing to html ?
@ 2013-08-12 22:53 Mehul Sanghvi
  2013-08-13  2:02 ` Mehul Sanghvi
  0 siblings, 1 reply; 4+ messages in thread
From: Mehul Sanghvi @ 2013-08-12 22:53 UTC (permalink / raw)
  To: ML Emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-13 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 22:53 How to use my own stylesheet for publishing to html ? Mehul Sanghvi
2013-08-13  2:02 ` Mehul Sanghvi
2013-08-13  6:56   ` Sebastien Vauban
2013-08-13 14:06     ` Mehul Sanghvi

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.