Repository navigation
Expand file tree
/
Copy pathdoc.html
More file actions
200 lines (179 loc) · 9.45 KB
/
Copy pathdoc.html
File metadata and controls
200 lines (179 loc) · 9.45 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Docs — DUNGEON MASTER: THE HUNT</title>
<meta name="robots" content="noindex,nofollow" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link rel="stylesheet" href="css/landing.css" />
<style>
.doc-wrap { max-width: 920px; margin: 0 auto; padding: 24px 18px 80px; }
.doc-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
padding: 10px 0 16px; border-bottom: 1px solid #2a2a2a; margin-bottom: 22px; }
.doc-top a { text-decoration: none; color: #c8b8a0; padding: 6px 12px; border: 1px solid #3a2820;
border-radius: 6px; transition: background 120ms, color 120ms; }
.doc-top a:hover { background: #3a2820; color: #ffc8a0; }
.doc-top .spacer { flex: 1; }
.doc-top .docname { color: #ffc8a0; font-weight: 600; }
.doc-body h1 { font-size: 2rem; color: #ffc8a0; margin: 26px 0 12px; line-height: 1.2; }
.doc-body h2 { font-size: 1.5rem; color: #ffc8a0; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #2a2a2a; }
.doc-body h3 { font-size: 1.18rem; color: #ffb890; margin: 22px 0 8px; }
.doc-body h4 { font-size: 1.02rem; color: #e0c0a0; margin: 18px 0 6px; }
.doc-body p, .doc-body li { color: #c8bcae; line-height: 1.62; }
.doc-body a { color: #ff9a6a; }
.doc-body ul, .doc-body ol { margin: 8px 0 14px; padding-left: 24px; }
.doc-body li { margin: 4px 0; }
.doc-body code { background: #1e1812; border: 1px solid #2e2418; border-radius: 4px;
padding: 1px 5px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.86em; color: #ffcf9a; }
.doc-body pre.cb { background: #120e0a; border: 1px solid #2e2418; border-radius: 8px;
padding: 14px 16px; overflow-x: auto; margin: 14px 0; }
.doc-body pre.cb code { background: none; border: none; padding: 0; color: #d8c8b0; font-size: 0.84rem; line-height: 1.5; }
.doc-body blockquote { border-left: 3px solid #6b2840; background: #181210; margin: 14px 0;
padding: 8px 16px; color: #b8a890; border-radius: 0 6px 6px 0; }
.doc-body hr { border: none; border-top: 1px solid #2a2a2a; margin: 26px 0; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.9rem; }
.doc-body th, .doc-body td { border: 1px solid #2e2418; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-body th { background: #221912; color: #ffc8a0; }
.doc-body tr:nth-child(even) td { background: #161210; }
.doc-body img { max-width: 100%; border: 1px solid #2a2a2a; border-radius: 8px; margin: 10px 0; }
.doc-loading, .doc-error { color: #b0a090; padding: 40px 0; text-align: center; }
.doc-error { color: #ffb0a0; }
</style>
</head>
<body>
<div class="doc-wrap">
<nav class="doc-top">
<a href="index.html">🏠 Home</a>
<a href="wiki.html">📖 Wiki</a>
<a href="doc.html?f=README.md&t=Readme">📘 Readme</a>
<a href="doc.html?f=SETUP-README.md&t=Setup+Guide">🛠 Setup Guide</a>
<span class="spacer"></span>
<span class="docname" id="doc-name"></span>
</nav>
<div class="doc-body" id="doc-body"><div class="doc-loading">Loading…</div></div>
</div>
<script>
(function () {
'use strict';
function esc(s) {
return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
}
// Inline-level formatting. Input is raw markdown; we escape first, then add tags.
function inline(s) {
s = esc(s);
s = s.replace(/!\[([^\]]*)\]\(([^)\s]+)\)/g, '<img alt="$1" src="$2" loading="lazy">');
s = s.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, '<a href="$2" target="_blank" rel="noopener">$1</a>');
s = s.replace(/`([^`]+)`/g, '<code>$1</code>');
s = s.replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>');
s = s.replace(/(^|[^*])\*([^*\s][^*]*?)\*/g, '$1<em>$2</em>');
return s;
}
function cell(s) { return inline(s.trim()); }
// Compact markdown → HTML covering the constructs our docs use:
// fenced code, ATX headings, tables, ordered/unordered lists, blockquotes, hr, paragraphs.
function render(md) {
md = md.replace(/\r\n/g, '\n');
// Protect fenced code blocks first so their contents aren't mangled.
const blocks = [];
md = md.replace(/```[ \t]*([a-zA-Z0-9_-]*)\n([\s\S]*?)```/g, function (m, lang, code) {
blocks.push('<pre class="cb"><code>' + esc(code.replace(/\n+$/, '')) + '</code></pre>');
return '