summaryrefslogtreecommitdiffstats
path: root/doc/backends/deckjs/deckjs.conf
blob: 955733593101a1b824d5dfad43d854a324acf957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# version 1.6.3

include::{asciidoc-confdir}/xhtml11.conf[]
:backend-deckjs:

[miscellaneous]
outfilesuffix=.html

[attributes]
basebackend=html
basebackend-html=
backend-deckjs=

[macros]
(?u)^(?P<name>video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#

^>{3,}$=#nopagebreak

[preamble]

[sect1]
<section class="slide">
<h2>{title}</h2>
|
</section>

[paragraph]
<p>
|
</p>


#------------------------
#strike trough style
[quotes]
-=strikethrough

[tags]
strikethrough=<span style="text-decoration: line-through;">|</span>


#------------------------
#for literal block incremental

[literalblock]
<div class="literalblock{role? {role}}{incremental-option? slide}{incremental? slide}"{id? id="{id}"}>
<div class="title">{title}</div>
<div class="content">
<pre><tt>
|
</tt></pre>
</div></div>


#------------------------
# for quote block

[blockdef-quote]
delimiter=^_{4,}$
quote-style=template="quote_block",options=("a",)

[quote_block]
<blockquote class="{incremental?slide }{incremental-option?slide}">
  <p>|</p>
  <p><cite>-- {attribution} {citetitle?, {citetitle}}</cite></p>
</blockquote>


#------------------------
# for image

[image-blockmacro]
# TODO use image block title for alt
# <img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}" class="{incremental-option?slide }{incremental?slide}"/>
<div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}{incremental-option? slide}{incremental? slide}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}>
<div class="content">
<a class="image" href="{link}">
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
{data-uri#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
{link#}</a>
</div>
<div class="title" style="text-align: center">{caption={figure-caption} {counter:figure-number}. }{title}</div>
</div>


#------------------------
# for video

[video-blockmacro]
<div class="{incremental-option?slide }{incremental?slide }">
<iframe width="{width}" height="{height}" src="{target}" frameborder="0" allowfullscreen></iframe>
</div>


#------------------------
# for lists

[listtags-bulleted]
list=<ul>|</ul>
item=<li class="{incremental-option?slide}{incremental? slide}">|</li>
text=

[listtags-numbered]
list=<ol>|</ol>
item=<li class="{incremental-option?slide}{incremental? slide}">|</li>
text=<p>|</p>


#------------------------
# for source code block incremental
[listingblock]
<div class="listingblock{role? {role}}{incremental-option? slide}{incremental? slide}"{id? id="{id}"}>
<div class="title">{caption=}{title}</div>
<div class="content">
<pre><tt>
|
</tt></pre>
</div></div>

[source-highlight-block]
<div class="listingblock{incremental-option? slide}{incremental? slide}">
<a id="{id}"></a>
<div class="title">{caption=}{title}</div>
<div class="content">
|
</div></div>

#------------------------
# for page break improvements. See slidy2 configuration file
[nopagebreak-blockmacro]
{set:slidepagebreak!}

[pagebreak-blockmacro]
</div></div></div></div><div style="page-break-after:always">
{slidepagebreak}</div>
{set:slidepagebreak}


[header]
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>{doctitle=}</title>
	<meta name="description" content="{description}" />
	<meta name="viewport" content="width=1024, user-scalable=no">
	<meta name="author" content="{author}" />
	<meta name="generator" content="AsciiDoc {asciidoc-version}" />
	<meta name="presdate" content="{revdate}" />
	{corpname?<meta name="company" content="{corpname}" />}
	<!-- Core and extension CSS files -->
ifdef::linkcss[]
	<link rel="stylesheet" href="deck.js/core/deck.core.css">
	<link rel="stylesheet" href="deck.js/extensions/goto/deck.goto.css">
	<link rel="stylesheet" href="deck.js/extensions/menu/deck.menu.css">
	<link rel="stylesheet" href="deck.js/extensions/navigation/deck.navigation.css">
	<link rel="stylesheet" href="deck.js/extensions/status/deck.status.css">
	<link rel="stylesheet" href="deck.js/extensions/toc/deck.toc.css">
	<!-- Theme CSS files -->
	<link rel="stylesheet" href="./deck.js/themes/style/{deckjs_theme}.css">
	<link rel="stylesheet" href="./deck.js/themes/transition/{deckjs_transition}.css">
	{pygments?<link rel="stylesheet" href="./ad-stylesheet/pygments/{pygments_style}.css">}
	<!-- Replace path with correct path to Modernizr file. -->
	<script src="deck.js/modernizr.custom.js"></script>
endif::linkcss[]
ifndef::linkcss[]
<style type="text/css">
include1::{stylesdir=./deck.js/core}/deck.core.css[]
</style>
<style type="text/css">
include1::{stylesdir=./deck.js/extensions/goto}/deck.goto.css[]
</style>
<style type="text/css">
include1::{stylesdir=./deck.js/extensions/menu}/deck.menu.css[]
</style>
<style type="text/css">
include1::{stylesdir=./deck.js/extensions/navigation}/deck.navigation.css[]
</style>
<style type="text/css">
include1::{stylesdir=./deck.js/extensions/status}/deck.status.css[]
</style>
<style type="text/css">
include1::{stylesdir=./deck.js/extensions/toc}/deck.toc.css[]
</style>
<style type="text/css">
include1::{stylesdir=./deck.js/extensions/scale}/deck.scale.css[]
</style>
<!-- Theme CSS files -->
<style type="text/css">
include1::{stylesdir=./deck.js/themes/style}/{deckjs_theme}.css[]
</style>
<style type="text/css" id="transition-theme-link">
include1::{stylesdir=./deck.js/themes/transition}/{deckjs_transition}.css[]
</style>
ifdef::pygments[]
<style type="text/css">
include1::{stylesdir=./ad-stylesheet/pygments}/{pygments_style}.css[]
</style>
endif::pygments[]
<!-- Replace path with correct path to Modernizr file. -->
<script type="text/javascript">
# Escape as CDATA to pass validators.
/*<![CDATA[*/
include1::{scriptsdir=./deck.js}/modernizr.custom.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js}/jquery.min.js[]
/*]]>*/
</script>
<!-- Deck Core and extensions -->
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/core}/deck.core.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/menu}/deck.menu.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/goto}/deck.goto.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/status}/deck.status.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/navigation}/deck.navigation.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/toc}/deck.toc.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/deck.js-blank}/deck.blank.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/split}/deck.split.js[]
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
include1::{scriptsdir=./deck.js/extensions/scale}/deck.scale.js[]
/*]]>*/
</script>

endif::linkcss[]
</head>
<body class="deck-container">
<section class="slide" id="title-slide">
	<h1>{doctitle}</h1>
	<h3>{author}{corpname? — {corpname}}</h3>
	<h4>{revdate}</h4>
</section>



[footer]
<a href="#" class="deck-prev-link" title="Previous">&#8592;</a>
<a href="#" class="deck-next-link" title="Next">&#8594;</a>
<p class="deck-status">
	<span class="deck-status-current"></span>
	/
	<span class="deck-status-total"></span>
</p>
# toc pannel
<div class="deck-toc"></div>
# toc status panel
#<table class="deck-toc-status">
#	 <tr>
#		 <td class="right deck-toc-h2">&nbsp;</td>
#		 <td class="left deck-toc-h3">&nbsp;</td>
#	 </tr>
#</table>
<form action="." method="get" class="goto-form">
	<label for="goto-slide">Go to slide:</label>
	<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
	<datalist id="goto-datalist"></datalist>
	<input type="submit" value="Go">
</form>
<!-- Other extension HTML snippets go here, at the bottom of the deck container. -->
ifdef::linkcss[]
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script>window.jQuery || document.write('<script src="deck.js/jquery.min.js"><\/script>')</script>
<!-- for JQuery backward compatibility -->
	<script>window.jQuery || document.write('<script src="deck.js/jquery.min.js"><\/script>')</script>
	<!-- Deck Core and extensions -->
	<script src="deck.js/core/deck.core.js"></script>
	<script src="deck.js/extensions/menu/deck.menu.js"></script>
	<script src="deck.js/extensions/goto/deck.goto.js"></script>
	<script src="deck.js/extensions/status/deck.status.js"></script>
	<script src="deck.js/extensions/navigation/deck.navigation.js"></script>
	<script src="deck.js/extensions/toc/deck.toc.js"></script>
	<script src="deck.js/extensions/deck.js-blank/deck.blank.js"></script>
	<script src="deck.js/extensions/split/deck.split.js"></script>
	<script src="deck.js/extensions/scale/deck.scale.js"></script>
endif::linkcss[]
<!-- Initialize the deck. You can put this in an external file if desired. -->
<script>
	(function($, deck, undefined) {

ifdef::scrollable[]
$.deck.defaults.keys["previous"] = [8, 33, 37, 39];
$.deck.defaults.keys["next"] = [13, 32, 34, 39];
endif::scrollable[]

ifndef::count_nested[]
		$.extend(true, $[deck].defaults, {
			countNested: false
		});
endif::count_nested[]

		$.deck('.slide');
	})(jQuery, 'deck');
</script>
</body>
</html>