emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* html export using html5 elements and bootstrap framework
@ 2015-01-02 15:47 R C
  2015-01-03 18:37 ` Rick Frankel
  2015-01-06 19:43 ` Bill White
  0 siblings, 2 replies; 10+ messages in thread
From: R C @ 2015-01-02 15:47 UTC (permalink / raw)
  To: emacs-orgmode

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>

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

end of thread, other threads:[~2015-01-07 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-02 15:47 html export using html5 elements and bootstrap framework R C
2015-01-03 18:37 ` 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

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