-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (44 loc) · 1.4 KB
/
index.html
File metadata and controls
44 lines (44 loc) · 1.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apollo - Kubernetes Pod Diagnosis</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown-light.min.css">
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
</head>
<body>
<article class="markdown-body" id="content">
Loading...
</article>
<script>
fetch('README.md')
.then(response => response.text())
.then(text => {
// Convert markdown to HTML using marked.js
fetch('https://cdn.jsdelivr.net/npm/marked/marked.min.js')
.then(response => response.text())
.then(script => {
eval(script);
document.getElementById('content').innerHTML = marked.parse(text);
});
})
.catch(error => {
document.getElementById('content').innerHTML = '<p>Error loading README.md</p>';
});
</script>
</body>
</html>