Skip to content

Commit 9fe55c5

Browse files
committed
build(stlite): add index.html for stlite site
1 parent 114792a commit 9fe55c5

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
9+
/>
10+
<title>Stlite App</title>
11+
<link
12+
rel="stylesheet"
13+
href="https://cdn.jsdelivr.net/npm/@stlite/browser@0.76.0/build/style.css"
14+
/>
15+
</head>
16+
<body>
17+
<div id="root"></div>
18+
<script type="module">
19+
import { mount } from "https://cdn.jsdelivr.net/npm/@stlite/browser@0.76.0/build/stlite.js";
20+
mount(
21+
{
22+
requirements: [
23+
"matplotlib",
24+
"numpy",
25+
"pandas",
26+
"pip",
27+
"simpy==4.1.1",
28+
"sim-tools==0.5.0",
29+
"streamlit==1.34.0"
30+
],
31+
entrypoint: "Home.py",
32+
files: {
33+
"Home.py": {url: "./Home.py"},
34+
"pages/CCU_Stage_1.py": {url: "./pages/CCU_Stage_1.py"},
35+
"pages/CCU_Stage_2.py": {url: "./pages/CCU_Stage_2.py"},
36+
"pages/Stroke_Stage_1.py": {url: "./pages/Stroke_Stage_1.py"},
37+
"pages/Stroke_Stage_2.py": {url: "./pages/Stroke_Stage_2.py"}
38+
}
39+
},
40+
document.getElementById("root"),
41+
);
42+
</script>
43+
</body>
44+
</html>

0 commit comments

Comments
 (0)