Skip to content
Snippets Groups Projects
Commit a4acfa65 authored by Goik Martin's avatar Goik Martin
Browse files

Simplified reveal.js usage

parent c3d5a5ac
No related branches found
No related tags found
No related merge requests found
......@@ -94,21 +94,33 @@
doctype-system="none">
<html>
<head>
<meta charset="utf-8"/>
<title>
<xsl:value-of select="d:title"/>
</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link href="reveal.js/css/reveal.css" rel="stylesheet"/>
<link href="reveal.js/css/theme/serif.css" id="theme" rel="stylesheet"/>
<link href="reveal.js/lib/css/zenburn.css" rel="stylesheet"/>
<link rel="stylesheet" href="reveal.js/css/idea.min.css"/>
<link href="slideAssets/css/positioning.css" rel="stylesheet"/>
<link href="slideAssets/css/tooltips.css" rel="stylesheet"/>
<link href="slideAssets/css/extra.css" rel="stylesheet"/>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<xsl:attribute name="content">
<xsl:value-of select="d:title"/>
</xsl:attribute>
</meta>
<meta name="author" content="Martin Goik"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="reveal.js/dist/reset.css"/>
<link rel="stylesheet" href="reveal.js/dist/reveal.css"/>
<link rel="stylesheet" href="reveal.js/dist/theme/white.css" id="theme"/>
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="reveal.js/plugin/highlight/monokai.css"/>
</head>
<body>
......@@ -125,16 +137,34 @@
descendant-or-self::d:section |
descendant-or-self::d:appendix)[d:figure[not(ancestor::d:qandaset)]]"/>
<!-- No longer needed: Simplify reveal.js usage
<xsl:apply-templates select="$revealSections" mode="slideRootHeaders"/>
-->
<div class="slides">
<xsl:apply-templates select="$revealSections" mode="slideRootSections"/>
</div>
</div>
<script src="reveal.js/js/reveal.js"/>
<script src="common/jquery/jquery-1.7.2.min.js"/>
<script src="slideAssets/js/docbookSupp.js"/>
<script src="reveal.js/dist/reveal.js"></script>
<script src="reveal.js/plugin/zoom/zoom.js"></script>
<script src="reveal.js/plugin/notes/notes.js"></script>
<script src="reveal.js/plugin/search/search.js"></script>
<script src="reveal.js/plugin/markdown/markdown.js"></script>
<script src="reveal.js/plugin/highlight/highlight.js"></script>
<script>
Reveal.initialize({
controls: true,
progress: true,
center: true,
hash: true,
center: false,
transition: 'none',
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealHighlight ]
});
</script>
</body>
</html>
</xsl:document>
......@@ -313,6 +343,10 @@
<xsl:template match="d:chapter | d:section | d:appendix" mode="slideRootSections">
<section id="{@xml:id}">
<h3>
<xsl:apply-templates select="d:title/*|d:title/text()"/>
</h3>
<xsl:call-template name="createBreadcrumbHierarchy">
<xsl:with-param name="nodes"
......@@ -385,6 +419,9 @@
<xsl:for-each select="$imgLayerSet/*">
<section>
<h3>
<xsl:value-of select="$figureTitle"/>
</h3>
<xsl:choose>
<xsl:when test="1 = position()">
......@@ -422,7 +459,7 @@
<xsl:otherwise>
<section id="{$primarySectionId}">
<xsl:apply-templates select="*[not(self::d:title)]"/>
<xsl:apply-templates/>
</section>
</xsl:otherwise>
......@@ -483,13 +520,17 @@
</xsl:variable>
<section id="{$primarySectionId}_followupExercise">
<xsl:choose>
<xsl:when test="1 = count($followupQandasets)">
<h3>Followup exercise</h3>
<xsl:apply-templates select="$followupQandasets" mode="createTitleLink"/>
</xsl:when>
<xsl:otherwise>
<h3>Followup exercises</h3>
<ol>
<xsl:for-each select="$followupQandasets">
<li>
......
......@@ -147,7 +147,7 @@ SAXONCMD=java -cp "${DBOOK_XSL}/tools/lib/saxon9he.jar:/usr/share/java/xercesImp
%.slide: %.slide.xml
${SAXON6CMD} $< ${DBOOK_XSL_CUSTOM}/slide/xsl/slideHdm.xsl ${dbookXslSlideParam}
rsync -a --exclude .git /usr/share/reveal.js .
cd reveal.js; patch -p1 < ${DBOOK_XSL_CUSTOM}/slide/patch/reveal.css.patch
# cd reveal.js; patch -p1 < ${DBOOK_XSL_CUSTOM}/slide/patch/reveal.css.patch
rsync -a ${DBOOK_XSL_CUSTOM}/slide/slideAssets .
touch $*.slide
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment