-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocs.html
57 lines (51 loc) · 1.8 KB
/
docs.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- highlight.js CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/styles/default.min.css">
<title>Fantastic Docs</title>
</head>
<!-- Header HTML -->
<body>
<main>
<div class="container">
<header class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 mb-4 border-bottom">
<a href="/docs.html" class="d-flex align-items-center text-dark text-decoration-none">
<h1>Fantastic Docs</h1>
</a>
<ul class="nav col-12 col-md-auto mb-2 justify-content-center mb-md-0">
<li>
<a href="/docs.html" class="nav-link px-2 link-dark">Code</a>
</li>
<li>
<a href="/docs.html" class="nav-link px-2 link-dark">More Code</a>
</li>
</ul>
</header>
</div>
</main>
</body>
<!-- Render Markdown -->
<body>
<div id="content" class="container-sm"></div>
<!-- highlight.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/highlight.min.js"></script>
<!-- marked.js -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script>
const docs = "/docs.md"
async function run() {
let file = await fetch(docs)
let text = await file.text()
document.getElementById('content').innerHTML =
marked.parse(text);
hljs.highlightAll();
}
run()
</script>
</body>
</html>