-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
32 lines (31 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<title>Lnx Documentation</title>
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<link rel="shortcut icon" href="https://github.com/ChillFish8/lnx/raw/master/assets/logo.png">
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body id="bod">
</body>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"></script>
<script defer>
function openApiPath() {
const params = new URLSearchParams(window.location.search);
const version = params.get("version") ?? "latest";
return `/${version}/openapi.json`
}
const options = {};
const element = document.getElementById("bod");
const path = openApiPath();
Redoc.init(path, options, element);
</script>
</html>