-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
41 lines (41 loc) · 1.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>DANS Front-end Framework documentation</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'DANS Frontend Framework',
repo: 'DANS-KNAW/dans-frontend-framework',
loadSidebar: 'docs/_sidebar.md',
maxLevel: 4,
subMaxLevel: 2,
auto2top: true,
search: true,
routes: {
// RegEx match w/ asynchronous function
'/(.*)': function (route, matched, next) {
console.log(route)
fetch(`/packages${route}/README.md`)
.then(function (response) {
console.log(response)
next(response.body);
})
.catch(function (err) {
console.error(err)
});
},
},
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
</body>
</html>