Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
a4acfa65
Commit
a4acfa65
authored
1 year ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Simplified reveal.js usage
parent
c3d5a5ac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl
+53
-12
53 additions, 12 deletions
ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl
ws/Docbook/Preprocess/make.rules
+1
-1
1 addition, 1 deletion
ws/Docbook/Preprocess/make.rules
with
54 additions
and
13 deletions
ws/Docbook/CustomLayer/slide/xsl/slideHdm.xsl
+
53
−
12
View file @
a4acfa65
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
ws/Docbook/Preprocess/make.rules
+
1
−
1
View file @
a4acfa65
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Goik Martin
@goik
mentioned in commit
8156593d
·
1 year ago
mentioned in commit
8156593d
mentioned in commit 8156593db344311feb31494b7dfabe92011edad9
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment