emacs-orgmode@gnu.org archives
 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

* Re: How to use my own stylesheet for publishing to html ?
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Mehul Sanghvi @ 2013-08-13  2:02 UTC (permalink / raw)
  To: ML Emacs-orgmode

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

I made some changes:

 - Removed #+SETUPFILE: from index.org

 - Added :html-head to org-publish-project-alist


And that seems to have done the trick.  So it seems the problem is with the
template that I was referring to in #+SETUPFILE which I'll need to look at,
one option at a time, unless someone can point me to what is wrong with it.


cheers,

      mehul



On Mon, Aug 12, 2013 at 6:53 PM, Mehul Sanghvi <mehul.sanghvi@gmail.com>wrote:

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



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

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

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

* Re: How to use my own stylesheet for publishing to html ?
  2013-08-13  2:02 ` Mehul Sanghvi
@ 2013-08-13  6:56   ` Sebastien Vauban
  2013-08-13 14:06     ` Mehul Sanghvi
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastien Vauban @ 2013-08-13  6:56 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello Mehul,

Mehul Sanghvi wrote:
>> I have the following in a template file [...]
>> 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.
>
> I made some changes:
>
>  - Removed #+SETUPFILE: from index.org
>
>  - Added :html-head to org-publish-project-alist
>
> And that seems to have done the trick.  So it seems the problem is with the
> template that I was referring to in #+SETUPFILE which I'll need to look at,
> one option at a time, unless someone can point me to what is wrong with it.

'could be that, since Org 8, #+SETUPFILE needs a filepath/name enclosed in
double quotes:

  #+SETUPFILE: "path/to/file.org"

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: How to use my own stylesheet for publishing to html ?
  2013-08-13  6:56   ` Sebastien Vauban
@ 2013-08-13 14:06     ` Mehul Sanghvi
  0 siblings, 0 replies; 4+ messages in thread
From: Mehul Sanghvi @ 2013-08-13 14:06 UTC (permalink / raw)
  To: ML Emacs-orgmode

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

Sebastian,

      Thanks.   I'll try that out and see what happens.  I am running into
another problem currently which I'll send out email about.


cheers,

      mehul



On Tue, Aug 13, 2013 at 2:56 AM, Sebastien Vauban
<sva-news@mygooglest.com>wrote:

> Hello Mehul,
>
> Mehul Sanghvi wrote:
> >> I have the following in a template file [...]
> >> 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.
> >
> > I made some changes:
> >
> >  - Removed #+SETUPFILE: from index.org
> >
> >  - Added :html-head to org-publish-project-alist
> >
> > And that seems to have done the trick.  So it seems the problem is with
> the
> > template that I was referring to in #+SETUPFILE which I'll need to look
> at,
> > one option at a time, unless someone can point me to what is wrong with
> it.
>
> 'could be that, since Org 8, #+SETUPFILE needs a filepath/name enclosed in
> double quotes:
>
>   #+SETUPFILE: "path/to/file.org"
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>


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

[-- Attachment #2: Type: text/html, Size: 2456 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 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).