Skip to content

Commit 408170c

Browse files
committed
Reformat.
1 parent 607318f commit 408170c

2 files changed

Lines changed: 108 additions & 101 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode/

index.html

Lines changed: 107 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,109 @@
11
<!DOCTYPE HTML>
22
<html lang="en">
3-
<head>
4-
<title>Rhai &ndash; Embedded Scripting for Rust</title>
5-
6-
<meta charset="UTF-8">
7-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
8-
<meta name="description" content="Embedded scripting language and engine for Rust. A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust. Builds for most common targets including no-std and WASM.">
9-
<meta name="viewport" content="width=device-width, initial-scale=1">
10-
<meta name="theme-color" content="#ffd675">
11-
12-
<link rel="shortcut icon" href="https://rhai.rs/book/favicon.png">
13-
14-
<style>
15-
* {
16-
margin: 0;
17-
padding: 0;
18-
box-sizing: border-box;
19-
font-family: sans-serif;
20-
}
21-
body {
22-
/* Gradient from logo */
23-
background: #f67501;
24-
background: linear-gradient(180deg, #ffd675 0%, #f67501 100%);
25-
}
26-
.center {
27-
margin: 1rem;
28-
min-height: calc(100vh - 2rem);
29-
display: flex;
30-
justify-content: center;
31-
align-items: center;
32-
}
33-
main {
34-
max-width: 42rem;
35-
padding: 1rem;
36-
background: white;
37-
border-radius: 0.5rem;
38-
line-height: 1.5rem;
39-
}
40-
.space-lg {
41-
margin-top: 2rem;
42-
}
43-
.space-sm {
44-
margin-top: 1rem;
45-
}
46-
.logo {
47-
display: block;
48-
max-width: 50%;
49-
margin: 0 auto;
50-
}
51-
h1 {
52-
font-size: 1.3rem;
53-
text-align: center;
54-
}
55-
</style>
56-
</head>
57-
<body>
58-
<div class="center">
59-
<main>
60-
<img class="logo" alt="Rhai logo" src="https://rhai.rs/book/images/logo/rhai-logo-transparent-colour-black.svg" />
61-
62-
<h1 class="space-lg">Embedded scripting language and engine for Rust</h1>
63-
64-
<p class="space-lg">
65-
A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust. Builds for most common targets including no-std and WASM.
66-
</p>
67-
68-
<p class="space-sm">
69-
Home Repo on GitHub: <a href="https://github.com/rhaiscript">https://github.com/rhaiscript</a>
70-
</p>
71-
72-
<p>
73-
Read <a href="book"><i>The Rhai Book</i> here</a>.
74-
</p>
75-
76-
<p>
77-
Try it out at the <a href="playground"><i>Online Playground</i> here</a>.
78-
</p>
79-
80-
<h3 class="space-lg">Other resources</h3>
81-
82-
<p class="space-sm">
83-
crates.io &ndash; <a href="https://crates.io/crates/rhai">https://crates.io/crates/rhai</a>
84-
</p>
85-
<p>
86-
Discord &ndash; <a href="https://discord.gg/HquqbYFcZ9">https://discord.gg/HquqbYFcZ9</a>
87-
</p>
88-
<p>
89-
Reddit &ndash; <a href="https://www.reddit.com/r/Rhai">https://www.reddit.com/r/Rhai</a>
90-
</p>
91-
92-
<h3 class="space-lg">IDE integration</h3>
93-
94-
<p class="space-sm">
95-
<a href="https://marketplace.visualstudio.com/items?itemName=rhaiscript.vscode-rhai">VS Code Plugin</a> &ndash; syntax highlighting for <code>.rhai</code> script files
96-
</p>
97-
<p>
98-
<a href="https://packagecontrol.io/packages/Rhai">Sublime Text 3</a> &ndash; syntax highlighting for <code>.rhai</code> script files
99-
</p>
100-
</main>
101-
</div>
102-
</body>
103-
</html>
3+
4+
<head>
5+
<title>Rhai &ndash; Embedded Scripting for Rust</title>
6+
7+
<meta charset="UTF-8">
8+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
9+
<meta name="description"
10+
content="Embedded scripting language and engine for Rust. A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust. Builds for most common targets including no-std and WASM.">
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<meta name="theme-color" content="#ffd675">
13+
14+
<link rel="shortcut icon" href="https://rhai.rs/book/favicon.png">
15+
16+
<style>
17+
* {
18+
margin: 0;
19+
padding: 0;
20+
box-sizing: border-box;
21+
font-family: sans-serif;
22+
}
23+
24+
body {
25+
/* Gradient from logo */
26+
background: #f67501;
27+
background: linear-gradient(180deg, #ffd675 0%, #f67501 100%);
28+
}
29+
30+
.center {
31+
margin: 1rem;
32+
min-height: calc(100vh - 2rem);
33+
display: flex;
34+
justify-content: center;
35+
align-items: center;
36+
text-align: center;
37+
}
38+
39+
main {
40+
max-width: 42rem;
41+
padding: 1rem;
42+
background: white;
43+
border-radius: 0.5rem;
44+
line-height: 1.5rem;
45+
}
46+
47+
.space-lg {
48+
margin-top: 2rem;
49+
}
50+
51+
.space-sm {
52+
margin-top: 1rem;
53+
}
54+
55+
.logo {
56+
display: block;
57+
max-width: 50%;
58+
margin: 0 auto;
59+
}
60+
61+
h1 {
62+
font-size: 1.3rem;
63+
}
64+
</style>
65+
</head>
66+
67+
<body>
68+
<div class="center">
69+
<main>
70+
<img class="logo" alt="Rhai logo"
71+
src="https://rhai.rs/book/images/logo/rhai-logo-transparent-colour-black.svg" />
72+
73+
<h1 class="space-lg">Embedded scripting language and engine for Rust</h1>
74+
75+
<p class="space-lg">
76+
A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust.
77+
Builds for most common targets including no-std and WASM.
78+
</p>
79+
80+
<p class="space-sm">
81+
<a href="https://crates.io/crates/rhai">crates.io</a>
82+
&nbsp;|&nbsp;
83+
<a href="https://github.com/rhaiscript">GitHub repo</a>
84+
&nbsp;|&nbsp;
85+
<a href="book"><i>The Rhai Book</i></a>
86+
&nbsp;|&nbsp;
87+
<a href="playground">Online Playground</a>
88+
</p>
89+
90+
<h3 class="space-lg">Community</h3>
91+
92+
<p class="space-sm">
93+
<a href="https://discord.gg/HquqbYFcZ9">Discord</a>
94+
&nbsp;|&nbsp;
95+
<a href="https://www.reddit.com/r/Rhai">Reddit</a>
96+
</p>
97+
98+
<h3 class="space-lg">IDE integration</h3>
99+
100+
<p class="space-sm">
101+
<a href="https://marketplace.visualstudio.com/items?itemName=rhaiscript.vscode-rhai">VS Code Plugin</a>
102+
&nbsp;|&nbsp;
103+
<a href="https://packagecontrol.io/packages/Rhai">Sublime Text 3 Package</a>
104+
</p>
105+
</main>
106+
</div>
107+
</body>
108+
109+
</html>

0 commit comments

Comments
 (0)