-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
237 lines (216 loc) Β· 12.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Sprucebot :: Developer Documentation :: DX First β‘οΈ</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Introducing Sprucebot! The most epic way to build in-person experiences." />
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-defaults.css" />
<link href="https://fonts.googleapis.com/css2?family=Muli:wght@600;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="//unpkg.com/[email protected]/themes/prism-okaidia.css" />
<link rel="stylesheet" href="spruce.css?v5" />
</head>
<body class="loading">
<div id="app"></div>
<script>
if (window.location.hash.includes('views/heartwood.watch')) {
window.location.replace('https://dev.spruce.bot/#views/heartwood.watch')
}
window.$docsify = {
name: "Sprucebot Guide",
coverpage: true,
loadSidebar: true,
subMaxLevel: 4,
auto2top: true,
tabs: {},
themeColor: "#1953CB",
logo: "_images/signature_blue.svg",
search: {
noData: {
"/": "I couldn't find anything!",
},
paths: "auto",
placeholder: "Searchβ¦",
},
docsifyPrism: {
init: function () {
var insideString = {
variable: [
// Arithmetic Environment
{
pattern: /\$?\(\([\s\S]+?\)\)/,
inside: {
// If there is a $ sign at the beginning highlight $(( and )) as variable
variable: [
{
pattern: /(^\$\(\([\s\S]+)\)\)/,
lookbehind: true,
},
/^\$\(\(/,
],
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee]-?\d+)?/,
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
operator: /--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,
// If there is no $ sign at the beginning highlight (( and )) as punctuation
punctuation: /\(\(?|\)\)?|,|;/,
},
},
// Command Substitution
{
pattern: /\$\([^)]+\)|`[^`]+`/,
greedy: true,
inside: {
variable: /^\$\(|^`|\)$|`$/,
},
},
/\$(?:[\w#?*!@]+|\{[^}]+\})/i,
],
};
Prism.languages.bash = {
shebang: {
pattern: /^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,
alias: "important",
},
comment: {
// pattern: /(^|[^"{\\])#.*/, //original
pattern: /(^|[^"{\\])#(?!spruce).*/,
lookbehind: true,
},
string: [
//Support for Here-Documents https://en.wikipedia.org/wiki/Here_document
{
pattern: /((?:^|[^<])<<\s*)["']?(\w+?)["']?\s*\r?\n(?:[\s\S])*?\r?\n\2/,
lookbehind: true,
greedy: true,
inside: insideString,
},
{
pattern: /(["'])(?:\\[\s\S]|\$\([^)]+\)|`[^`]+`|(?!\1)[^\\])*\1/,
greedy: true,
inside: insideString,
},
{
pattern: /\`.+\`/,
greedy: false,
},
{
pattern: /\<.+\>/,
greedy: false,
},
],
variable: insideString.variable,
// Originally based on http://ss64.com/bash/
function: {
pattern: /(^|[\s;|&])(?:alias|yarn|spruce|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|npm|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|xargs|xdg-open|yes|zip)(?=$|[\s;|&])/,
lookbehind: true,
},
keyword: {
pattern: /(^|[\s;|&])(?:let|:|\.|if|then|-.*?|\[.*?\]|Options|options|else|elif|fi|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|[\s;|&])/,
lookbehind: true,
},
boolean: {
pattern: /(^|[\s;|&])(?:true|false)(?=$|[\s;|&])/,
lookbehind: true,
},
operator: /&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];]/,
};
var inside = insideString.variable[1].inside;
inside.string = Prism.languages.bash.string;
inside["function"] = Prism.languages.bash["function"];
inside.keyword = Prism.languages.bash.keyword;
inside["boolean"] = Prism.languages.bash["boolean"];
inside.operator = Prism.languages.bash.operator;
inside.punctuation = Prism.languages.bash.punctuation;
Prism.languages.shell = Prism.languages.bash;
!(function (e) {
(e.languages.typescript = e.languages.extend(
"javascript",
{
"class-name": {
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
lookbehind: !0,
greedy: !0,
inside: null,
},
keyword: /\b(?:abstract|as|asserts|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type[!:]|FieldType\..*|typeof|undefined|var|void|while|with|yield)\b/,
builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/,
}
)),
delete e.languages.typescript.parameter;
var n = e.languages.extend("typescript", {});
delete n["class-name"],
(e.languages.typescript[
"class-name"
].inside = n),
e.languages.insertBefore(
"typescript",
"function",
{
"generic-function": {
pattern: /#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
greedy: !0,
inside: {
function: /^#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*/,
generic: {
pattern: /<[\s\S]+/,
alias: "class-name",
inside: n,
},
},
},
}
),
(e.languages.ts = e.languages.typescript);
})(Prism);
function resizeVideos() {
const videos = document.querySelectorAll('.video')
videos.forEach(v => {
const width = v.offsetWidth
const ratio = 1080 / 1920
const height = width * ratio
v.style.height = height + 'px'
})
}
window.addEventListener('load', () => {
resizeVideos()
setTimeout(resizeVideos, 1000)
})
window.addEventListener('resize', resizeVideos)
window.addEventListener('hashchange', resizeVideos)
},
},
};
</script>
<!-- <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
<!-- <script src="//unpkg.com/docsify-glossary/dist/docsify-glossary.min.js"></script> -->
<script src="//cdn.jsdelivr.net/npm/docsify-example-panels"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-prism@latest/dist/docsify-prism.min.js"></script>
<script src="//unpkg.com/[email protected]/components/prism-javascript.min.js"></script>
<script src="https://player.vimeo.com/api/player.js"></script>
<script src="_js/ready.js"></script>
<script src="_js/docs.js"></script>
<script>
window.addEventListener("load", function () {
window.document.body.classList.add("loaded");
// var xhr = new XMLHttpRequest();
// xhr.open("GET", "_images/signature.svg", false);
// // Following line is just to be on the safe side;
// // not needed if your server delivers SVG with correct MIME type
// xhr.overrideMimeType("image/svg+xml");
// xhr.onload = function (e) {
// const container = window.document.querySelector(
// ".app-name .app-name-link"
// );
// container.innerHTML = xhr.responseText;
// };
// xhr.send("");
});
</script>
</body>
</html>