-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
164 lines (150 loc) · 5.69 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
<!doctype html>
<!-- This file is based on
https://github.com/hakimel/reveal.js/blob/master/index.html. It contains
tabs instead of spaces, because that's how the original file was. Keeping
them as tabs makes it easier to compare/update.
However, this uses a customized theme from https://github.com/peter-kehl/reveal.js.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<title>no_std (embedded/low level-compatible) patterns in Rust</title>
<!-- Clone https://github.com/peter-kehl/reveal.js next to this repo. -->
<!-- Unsure if we need reset.css, but https://revealjs.com demo uses it.
-->
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
<!-- Keep theme & highlight-theme in sync with one of "themes:"
configuration entries for "menu" plugin below.
-->
<!-- If we loaded several themes, the one loaded last would become the
default.
https://github.com/denehyg/reveal.js-menu replaces that initial
theme with any of the built-in themes that the user chooses.
(reveal.js-menu needs "id" here.)
-->
<link rel="stylesheet"
href="../reveal.js/dist/theme/black_compact_verbatim_headers.css"
id="theme">
<!-- Theme used for syntax highlighted code. (reveal.js-menu needs "id"
here.)
-->
<link rel="stylesheet"
href="https://highlightjs.org/static/demo/styles/base16/windows-high-contrast.css"
id="highlight-theme">
<style type="text/css">
.reveal p {
text-align: left;
}
.reveal ul {
display: block;
}
.reveal ol {
display: block;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-markdown="../no_std_rna_slice_patterns/README.md"></section>
<section data-markdown="https://github.com/exercism/rust/blob/main/exercises/practice/rna-transcription/.docs/instructions.md"></section>
<section data-markdown="README_FIRST.md"></section>
<section data-markdown="README.md"></section>
<!-- Viewing this other than from github.com/peter-kehl? Clone
https://github.com/peter-kehl/no_std_rna_slice_patterns next to this repo -->
</div>
</div>
<!-- Clone https://github.com/peter-kehl/reveal.js next to this repo. -->
<script src="../reveal.js/dist/reveal.js"></script>
<!-- The following JS order may not matter, but let's keep it the same
as in Reveal.initialize(...).
-->
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
<!-- Clone https://github.com/befocken/revealjs-embed-code next to this
repo. -->
<script src="../revealjs-embed-code/embed-code.js"></script>
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
<!-- Clone https://denehyg.github.io/reveal.js-menu next to this repo.
-->
<script src="../reveal.js-menu/menu.js"></script>
<script src="../reveal.js/plugin/search/search.js"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
slideNumber: "c/t",
//width: "100%", // no difference height: "20%", // not useful
hash: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [
// The following four plugins have to be initialized in this
// order, so they apply in this order and before any other
// plugins.
RevealMarkdown,
EmbedCode,
RevealHighlight,
RevealMenu,
RevealSearch ],
// As per
// https://github.com/denehyg/reveal.js-menu#configuration
menu: {
//themes: true,
themes: [
{
name: 'Dark',
theme: '../reveal.js/dist/theme/black_compact_verbatim_headers.css',
// Reveal.js comes with only two highlighting
// themes, both darkish. You could use:
// highlightTheme:
// '../reveal.js/plugin/highlight/monokai.css'
//
// highlightTheme:
// '../reveal.js/plugin/highlight/zenburn.css'
//
// OR choose from many themes from
// https://highlightjs.org, for example:
//
// The only dark high contrast highlight theme:
highlightTheme: 'https://highlightjs.org/static/demo/styles/base16/windows-high-contrast.css'
//
// But, if you expect high traffic, clone
// https://github.com/highlightjs/highlight.js next
// to this repo and use (for example):
//
// highlightTheme:
// '../highlight.js/src/styles/base16/windows-high-contrast.css'
},
{
name: 'Light',
theme: '../reveal.js/dist/theme/white_compact_verbatim_headers.css',
// No light highlight themes in Reveal.js. The only
// light high contrast highlight theme:
highlightTheme: 'https://highlightjs.org/static/demo/styles/base16/windows-high-contrast-light.css'
//
// But, if you expect high traffic, clone
// https://github.com/highlightjs/highlight.js next
// to this repo and use (for example):
//
// highlightTheme:
// '../highlight.js/src/styles/base16/windows-high-contrast-light.css'
}
],
themesPath: '../reveal.js/dist/theme/',
transitions: ['None', 'Fade', 'Slide']
},
// width and margin help <pre><code> have more space
width: "100%",
margin: 0,
// Don't use: height: "100%". Otherwise <pre><code> is narrow.
// Don't use: disableLayout: true in general.
});
</script>
</body>
</html>