emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: R C <recif@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: html export using html5 elements and bootstrap framework
Date: Fri, 2 Jan 2015 15:47:36 +0000 (UTC)	[thread overview]
Message-ID: <loom.20150102T150820-358@post.gmane.org> (raw)

I would like to have org mode export a project using html5 elements and
bootstrap framework adapting the worg tutorial: org-publish-html-tutorial.html 

I set it up as:
- minimal org file to be published: "~/web/p2/org/tst.org"
#+SETUPFILE: ~/web/org-templates/level-0.org
#+TITLE: Testing
* heading 1
  abc

- template with links to bootstrap css and js files, and a local.js file
with my macro definitions for mathjax: "~/web/org-templates/level-0.org" 
with lines of the form:
#+STYLE:   <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
etc

- my project is setup as:
              ("p2-org"
               :base-directory "~/web/p2/org"
               :publishing-directory "~/web/p2/public_html"
               :recursive t
               :base-extension "org"
               :publishing-function org-html-publish-to-html
               :style-include-default nil
               :creator-info nil)
              ("p2-extra"
               :base-directory "~/web/p2/org"
               :publishing-directory "~/web/p2/public_html"
               :base-extension "css\\|pdf\\|png\\|jpg\\|gif"
               :publishing-function org-publish-attachment
               :recursive t
               :author nil)
              ("p2"
               :components ("p2-org" "p2-extra"))))

I also have: (setq org-html-html5-fancy t)

However tst.html does not show any inclusions from the level-0.org file and
does not seem to use the html5 doctype:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Testing</title>
<!-- 2015-01-02 Fri 10:41 -->
<meta  http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta  name="generator" content="Org-mode" />

<script type="text/javascript" src="js/org-info.js">
...
</script>
</head>
<body>
<div id="content">
<h1 class="title">Testing</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">heading 1</a></li>
</ul>
</div>
</div>

<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1">heading 1</h2>

             reply	other threads:[~2015-01-02 15:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-02 15:47 R C [this message]
2015-01-03 18:37 ` html export using html5 elements and bootstrap framework Rick Frankel
2015-01-03 21:09   ` RC
2015-01-03 21:25     ` Rasmus
2015-01-03 21:47       ` RC
2015-01-04  1:32         ` Rasmus
2015-01-06 15:40           ` Rick Frankel
2015-01-07 13:36             ` R C
2015-01-06 19:43 ` Bill White
2015-01-07 13:26   ` R C

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=loom.20150102T150820-358@post.gmane.org \
    --to=recif@yahoo.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).