forked from Ayowel/vscode-asciidoc-presentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
487 lines (402 loc) · 16.4 KB
/
index.html
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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="libs/reveal.js/css/reset.css">
<link rel="stylesheet" href="libs/reveal.js/css/reveal.css">
<link rel="stylesheet" href="libs/league-gothic-font/webfonts/stylesheet.css">
<link rel="stylesheet" href="libs/reveal.js/css/theme/moon.css">
<link rel="stylesheet" href="libs/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="libs/highlight.js/styles/vs2015.css">
<!--This CSS is generated by the Asciidoctor reveal.js converter to further integrate AsciiDoc's existing semantic with reveal.js-->
<style type="text/css">
.reveal div.right {
float: right
}
/* listing block */
.reveal .listingblock.stretch>.content {
height: 100%
}
.reveal .listingblock.stretch>.content>pre {
height: 100%
}
.reveal .listingblock.stretch>.content>pre>code {
height: 100%;
max-height: 100%
}
/* tables */
table {
border-collapse: collapse;
border-spacing: 0
}
table {
margin-bottom: 1.25em;
border: solid 1px #dedede
}
table thead tr th,
table thead tr td,
table tfoot tr th,
table tfoot tr td {
padding: .5em .625em .625em;
font-size: inherit;
text-align: left
}
table tr th,
table tr td {
padding: .5625em .625em;
font-size: inherit
}
table thead tr th,
table tfoot tr th,
table tbody tr td,
table tr td,
table tfoot tr td {
display: table-cell;
line-height: 1.6
}
td.tableblock>.content {
margin-bottom: 1.25em
}
td.tableblock>.content>:last-child {
margin-bottom: -1.25em
}
table.tableblock,
th.tableblock,
td.tableblock {
border: 0 solid #dedede
}
table.grid-all>thead>tr>.tableblock,
table.grid-all>tbody>tr>.tableblock {
border-width: 0 1px 1px 0
}
table.grid-all>tfoot>tr>.tableblock {
border-width: 1px 1px 0 0
}
table.grid-cols>*>tr>.tableblock {
border-width: 0 1px 0 0
}
table.grid-rows>thead>tr>.tableblock,
table.grid-rows>tbody>tr>.tableblock {
border-width: 0 0 1px
}
table.grid-rows>tfoot>tr>.tableblock {
border-width: 1px 0 0
}
table.grid-all>*>tr>.tableblock:last-child,
table.grid-cols>*>tr>.tableblock:last-child {
border-right-width: 0
}
table.grid-all>tbody>tr:last-child>.tableblock,
table.grid-all>thead:last-child>tr>.tableblock,
table.grid-rows>tbody>tr:last-child>.tableblock,
table.grid-rows>thead:last-child>tr>.tableblock {
border-bottom-width: 0
}
table.frame-all {
border-width: 1px
}
table.frame-sides {
border-width: 0 1px
}
table.frame-topbot,
table.frame-ends {
border-width: 1px 0
}
.reveal table th.halign-left,
.reveal table td.halign-left {
text-align: left
}
.reveal table th.halign-right,
.reveal table td.halign-right {
text-align: right
}
.reveal table th.halign-center,
.reveal table td.halign-center {
text-align: center
}
.reveal table th.valign-top,
.reveal table td.valign-top {
vertical-align: top
}
.reveal table th.valign-bottom,
.reveal table td.valign-bottom {
vertical-align: bottom
}
.reveal table th.valign-middle,
.reveal table td.valign-middle {
vertical-align: middle
}
table thead th,
table tfoot th {
font-weight: bold
}
tbody tr th {
display: table-cell;
line-height: 1.6
}
tbody tr th,
tbody tr th p,
tfoot tr th,
tfoot tr th p {
font-weight: bold
}
thead {
display: table-header-group
}
.reveal table.grid-none th,
.reveal table.grid-none td {
border-bottom: 0 !important
}
/* kbd macro */
kbd {
font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace;
display: inline-block;
color: rgba(0, 0, 0, .8);
font-size: .65em;
line-height: 1.45;
background: #f7f7f7;
border: 1px solid #ccc;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 0 0 .1em white inset;
box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 0 0 .1em #fff inset;
margin: 0 .15em;
padding: .2em .5em;
vertical-align: middle;
position: relative;
top: -.1em;
white-space: nowrap
}
.keyseq kbd:first-child {
margin-left: 0
}
.keyseq kbd:last-child {
margin-right: 0
}
/* callouts */
.conum[data-value] {
display: inline-block;
color: #fff !important;
background: rgba(0, 0, 0, .8);
-webkit-border-radius: 50%;
border-radius: 50%;
text-align: center;
font-size: .75em;
width: 1.67em;
height: 1.67em;
line-height: 1.67em;
font-family: "Open Sans", "DejaVu Sans", sans-serif;
font-style: normal;
font-weight: bold
}
.conum[data-value] * {
color: #fff !important
}
.conum[data-value]+b {
display: none
}
.conum[data-value]:after {
content: attr(data-value)
}
pre .conum[data-value] {
position: relative;
top: -.125em
}
b.conum * {
color: inherit !important
}
.conum:not([data-value]):empty {
display: none
}
/* Callout list */
.hdlist>table,
.colist>table {
border: 0;
background: none
}
.hdlist>table>tbody>tr,
.colist>table>tbody>tr {
background: none
}
td.hdlist1,
td.hdlist2 {
vertical-align: top;
padding: 0 .625em
}
td.hdlist1 {
font-weight: bold;
padding-bottom: 1.25em
}
/* Disabled from Asciidoctor CSS because it caused callout list to go under the
* source listing when .stretch is applied (see #335)
* .literalblock+.colist,.listingblock+.colist{margin-top:-.5em} */
.colist td:not([class]):first-child {
padding: .4em .75em 0;
line-height: 1;
vertical-align: top
}
.colist td:not([class]):first-child img {
max-width: none
}
.colist td:not([class]):last-child {
padding: .25em 0
}
/* Override Asciidoctor CSS that causes issues with reveal.js features */
.reveal .hljs table {
border: 0
}
/* Callout list rows would have a bottom border with some reveal.js themes (see #335) */
.reveal .colist>table th,
.reveal .colist>table td {
border-bottom: 0
}
/* Fixes line height with Highlight.js source listing when linenums enabled (see #331) */
.reveal .hljs table thead tr th,
.reveal .hljs table tfoot tr th,
.reveal .hljs table tbody tr td,
.reveal .hljs table tr td,
.reveal .hljs table tfoot tr td {
line-height: inherit
}
/* Columns layout */
.columns .slide-content {
display: flex;
}
.columns.wrap .slide-content {
flex-wrap: wrap;
}
.columns.is-vcentered .slide-content {
align-items: center;
}
.columns .slide-content>.column {
display: block;
flex-basis: 0;
flex-grow: 1;
flex-shrink: 1;
padding: .75rem;
}
.columns .slide-content>.column.is-full {
flex: none;
width: 100%;
}
.columns .slide-content>.column.is-four-fifths {
flex: none;
width: 80%;
}
.columns .slide-content>.column.is-three-quarters {
flex: none;
width: 75%;
}
.columns .slide-content>.column.is-two-thirds {
flex: none;
width: 66.6666%;
}
.columns .slide-content>.column.is-three-fifths {
flex: none;
width: 60%;
}
.columns .slide-content>.column.is-half {
flex: none;
width: 50%;
}
.columns .slide-content>.column.is-two-fifths {
flex: none;
width: 40%;
}
.columns .slide-content>.column.is-one-third {
flex: none;
width: 33.3333%;
}
.columns .slide-content>.column.is-one-quarter {
flex: none;
width: 25%;
}
.columns .slide-content>.column.is-one-fifth {
flex: none;
width: 20%;
}
</style> </head>
<body>
<div class="reveal">
<div class="slides">
<section class="title" data-state="title">
<h1>asciidoc presentation preview</h1>
</section>
<section><section id="_images"><h2>Images</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">image::morpheus.jpg[]</code></pre></div></div><div class="paragraph"><p>results in:</p></div><div class="imageblock" style=""><img src="media/morpheus.jpg" alt="morpheus"></div></div></section><section id="_background_images" data-background-image="media/background.jpg" data-background-size="cover"><h2>Background Images</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">image::background.jpg[background, size=cover]</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div></div></section><section id="_background_gifs" data-background-image="media/suprise.gif" data-background-size="cover"><h2>Background Gifs</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">image::suprise.gif[background, size=cover]</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div></div></section><section id="_background_videos" data-background-video="https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4" data-background-video-loop data-background-video-muted><h2>Background Videos</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">[background-video="https://video.de/my.mp4",options="loop,muted"]</code></pre></div></div></div></section></section>
<section><section id="_plantuml"><h2>PlantUml</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">[graphviz]
[plantuml,alice-bob]
....
alice -> bob
....</code></pre></div></div><div class="paragraph"><p>results in:</p></div><div class="imageblock sequence kroki-format-svg kroki" style=""><img src="https://kroki.io/plantuml/svg/eNpLzMlMTlXQtVNIyk8CABoDA90=" alt="alice-bob"></div></div></section><section id="_graphviz"><h2>Graphviz</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">[graphviz]
....
digraph foo {
node [style=rounded]
node1 [shape=box]
node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
node3 [shape=record, label="{ a | b | c }"]
node1 -> node2 -> node3
}
....</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div>
<div class="imageblock kroki" style=""><img src="https://kroki.io/graphviz/svg/eNo9jjEOwjAMRfee4itzGKBzuEjVIaldWsnEVQBBVXp3AqQdLFlP_32bxkvy04BeFUsFRCVGc7vPwi7pIxJTW_Ax88FP7IK-NnZC048inYomN7OIPi3-tim6_QaYTOY_m0Z_1bi31ltr4k4TWYgPLM4s8Hgj5Omwmrbanzicy-Wy1NX6AUS2QVQ=" alt="diagram"></div></div></section></section>
<section><section id="_column_layout" class="columns"><h2>Column layout</h2><div class="slide-content"><div class="openblock column"><div class="content"><div class="ulist"><ul><li><p><strong>Edgar Allen Poe</strong></p></li><li><p>Sheri S. Tepper</p></li><li><p>Bill Bryson</p></li></ul></div></div></div><div class="openblock column"><div class="content"><div class="paragraph"><p>Edgar Allan Poe (/poʊ/; born Edgar Poe; Ja
nuary 19, 1809 – October 7, 1849) was an American writer, editor, and literary critic.</p></div></div></div></div></section><section id="_columns_with_size" class="columns"><h2>Columns with size</h2><div class="slide-content"><div class="openblock column is-one-third"><div class="content"><div class="ulist"><ul><li><p><strong>Kotlin</strong></p></li><li><p>Java</p></li><li><p>Scala</p></li></ul></div></div></div>
<div class="openblock column"><div class="content"><div class="paragraph"><p>Programming language for Android, mobile cross-platform
and web development, server-side, native,
and data science. Open source forever Github.</p></div></div></div></div></section></section>
<section><section id="_lists"><h2>Lists</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">* Im
* a
* List</code></pre></div></div><div class="paragraph"><p>results in:</p></div><div class="ulist"><ul><li><p>Im</p></li><li><p>a</p></li><li><p>List</p></li></ul></div></div></section><section id="_lists_2"><h2>Lists</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">. Step 1
. Step 2
.. Step 2a
.. Step 2b
. Step 3</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div>
<div class="olist arabic"><ol class="arabic"><li><p>Step 1</p></li><li><p>Step 2</p><div class="olist loweralpha"><ol class="loweralpha" type="a"><li><p>Step 2a</p></li><li><p>Step 2b</p></li></ol></div></li><li><p>Step 3</p></li></ol></div></div></section><section id="_descriptions"><h2>Descriptions</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">first term:: definition of first term
second term:: definition of second term</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div>
<div class="dlist"><dl><dt class="hdlist1">first term</dt><dd><p>definition of first term</p></dd><dt class="hdlist1">second term</dt><dd><p>definition of second term</p></dd></dl></div></div></section></section>
<section id="_source_code"><h2>Source Code</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">[source, clojure]
----
(def lazy-fib
(concat
[0 1]
((fn rfib [a b]
(lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
----</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div>
<div class="listingblock"><div class="content"><pre class="highlight"><code class="language-clojure" data-lang="clojure">(def lazy-fib
(concat
[0 1]
((fn rfib [a b]
(lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))</code></pre></div></div></div></section>
<section id="_tables"><h2>Tables</h2><div class="slide-content"><div class="listingblock"><div class="content"><pre class="highlight"><code class="language-asciidoc" data-lang="asciidoc">[%header, cols=2*]
|===
|Character
|Seen in
|Donald Duck
|Mickey Mouse
|===</code></pre></div></div>
<div class="paragraph"><p>results in:</p></div>
<table class="tableblock frame-all grid-all" style="width:100%"><colgroup><col style="width:50%"><col style="width:50%"></colgroup><thead><tr><th class="tableblock halign-left valign-top">Character</th><th class="tableblock halign-left valign-top">Seen in</th></tr><tbody><tr><td class="tableblock halign-left valign-top"><p class="tableblock">Donald Duck</p></td><td class="tableblock halign-left valign-top"><p class="tableblock">Mickey Mouse</p></td></tr></table></div></section>
<section id="_quotes"><h2>Quotes</h2><div class="slide-content"><div class="quoteblock"><blockquote>A person who never made a mistake never tried anything new.</blockquote><div class="attribution">— Albert Einstein</div></div></div></section>
</div>
</div>
<script src="libs/highlight.js/lib/highlight.js"></script>
<script src="libs/reveal.js/js/reveal.js"></script>
<script>
Reveal.initialize({
hash: true,
history: true,
dependencies: [
{ src: 'libs/reveal.js/plugin/notes/notes.js', async: true },
{ src: 'libs/reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'libs/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); }},
]
})
</script>
</body>
</html>