-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
66 lines (61 loc) · 1.87 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>External Code reveal.js plugin</title>
<link rel="stylesheet" href="node_modules/reveal.js/dist/reset.css" />
<link rel="stylesheet" href="node_modules/reveal.js/dist/reveal.css" />
<link rel="stylesheet" href="node_modules/reveal.js/dist/theme/black.css" />
<link rel="stylesheet" href="node_modules/reveal.js/plugin/highlight/monokai.css" />
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>External Code</h1>
<h2>Reveal.js Plugin</h2>
<object type="reveal.js/code" data-src="code-samples/k8s.yaml" data-line-numbers="">
</object>
</section>
<section>
<h1>External Code</h1>
<h2>ranges</h2>
<h3>using <code>data-lines</code> attributes</h3>
<object type="reveal.js/code"
data-src="code-samples/k8s.yaml"
data-lines="1"
>
</object>
</section>
<section>
<h1>External Code</h1>
<h2>ranges</h2>
<h3>inside file <code>@reveal.js/code</code></h3>
<object type="reveal.js/code" data-src="code-samples/fibonacci.hs" data-line-numbers="">
</object>
</section>
</div>
</div>
<script type="module">
import Reveal from 'reveal.js';
import ExternalCode from './src/plugin.ts';
import RevealHighlight from 'reveal.js/plugin/highlight/highlight';
Reveal.initialize({
history: true,
overview: false,
center: true,
margin: 0.15,
externalCode: {
basePath: "/",
local: {
absPath: '/home/rparree/projects/foss-edc4it/reveal.js-external-code/public',
scheme: 'vscode://file//', // default
},
},
plugins: [ExternalCode, RevealHighlight],
});
</script>
</body>
</html>