Skip to content

Commit 7341cd0

Browse files
committed
docs
1 parent c6bdcbd commit 7341cd0

7 files changed

Lines changed: 370 additions & 79 deletions

File tree

docs/Advanced.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>BScript Docs</title>
6+
<style>
7+
/* Basic markdown styling */
8+
body {
9+
background-color: #000000;
10+
color: #00FF00;
11+
font-family: 'Courier New', Courier, monospace;
12+
margin: 0;
13+
padding: 2rem;
14+
line-height: 1.6;
15+
}
16+
17+
h1, h2, h3 {
18+
color: #39FF14;
19+
border-bottom: 1px solid #39FF14;
20+
padding-bottom: 0.25em;
21+
margin-top: 2rem;
22+
}
23+
24+
a {
25+
color: #00FFFF;
26+
text-decoration: none;
27+
}
28+
29+
a:hover {
30+
text-decoration: underline;
31+
}
32+
33+
code, pre {
34+
background-color: #111;
35+
color: #0f0;
36+
padding: 0.5em;
37+
display: block;
38+
overflow-x: auto;
39+
border-left: 4px solid #0f0;
40+
margin-bottom: 1em;
41+
}
42+
43+
button {
44+
background-color: #00FF00;
45+
color: #000;
46+
border: none;
47+
padding: 0.5em 1em;
48+
font-family: inherit;
49+
cursor: pointer;
50+
margin-top: 1em;
51+
transition: 0.2s ease;
52+
}
53+
54+
button:hover {
55+
background-color: #39FF14;
56+
}
57+
58+
.container {
59+
max-width: 800px;
60+
margin: auto;
61+
}
62+
63+
</style>
64+
</head>
65+
<body>
66+
67+
<div id="content">Loading...</div>
68+
69+
<script src="https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js"></script>
70+
<script>
71+
async function loadMarkdown(url) {
72+
const res = await fetch(url);
73+
const mdText = await res.text();
74+
75+
const md = markdownit({
76+
html: true,
77+
linkify: true,
78+
typographer: true
79+
})
80+
const result = md.render(mdText);
81+
82+
document.getElementById('content').innerHTML = result;
83+
}
84+
85+
// Change 'README.md' to your markdown filename or path
86+
loadMarkdown('Advanced.md');
87+
</script>
88+
89+
</body>
90+
</html>
91+

docs/Advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Advanced
22

3-
These are advanced functions for speicial use cases.
3+
These are advanced functions for special use cases.
44

55
## Single String to ASCII
66

docs/SYNTAX.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

docs/basics.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>BScript Docs</title>
6+
<style>
7+
/* Basic markdown styling */
8+
body {
9+
background-color: #000000;
10+
color: #00FF00;
11+
font-family: 'Courier New', Courier, monospace;
12+
margin: 0;
13+
padding: 2rem;
14+
line-height: 1.6;
15+
}
16+
17+
h1, h2, h3 {
18+
color: #39FF14;
19+
border-bottom: 1px solid #39FF14;
20+
padding-bottom: 0.25em;
21+
margin-top: 2rem;
22+
}
23+
24+
a {
25+
color: #00FFFF;
26+
text-decoration: none;
27+
}
28+
29+
a:hover {
30+
text-decoration: underline;
31+
}
32+
33+
code, pre {
34+
background-color: #111;
35+
color: #0f0;
36+
padding: 0.5em;
37+
display: block;
38+
overflow-x: auto;
39+
border-left: 4px solid #0f0;
40+
margin-bottom: 1em;
41+
}
42+
43+
button {
44+
background-color: #00FF00;
45+
color: #000;
46+
border: none;
47+
padding: 0.5em 1em;
48+
font-family: inherit;
49+
cursor: pointer;
50+
margin-top: 1em;
51+
transition: 0.2s ease;
52+
}
53+
54+
button:hover {
55+
background-color: #39FF14;
56+
}
57+
58+
.container {
59+
max-width: 800px;
60+
margin: auto;
61+
}
62+
63+
</style>
64+
</head>
65+
<body>
66+
67+
<div id="content">Loading...</div>
68+
69+
<script src="https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js"></script>
70+
<script>
71+
async function loadMarkdown(url) {
72+
const res = await fetch(url);
73+
const mdText = await res.text();
74+
75+
const md = markdownit({
76+
html: true,
77+
linkify: true,
78+
typographer: true
79+
})
80+
const result = md.render(mdText);
81+
82+
document.getElementById('content').innerHTML = result;
83+
}
84+
85+
// Change 'README.md' to your markdown filename or path
86+
loadMarkdown('Basics.md');
87+
</script>
88+
89+
</body>
90+
</html>
91+

docs/functions.html

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>BScript Docs</title>
6+
<style>
7+
/* Basic markdown styling */
8+
body {
9+
background-color: #000000;
10+
color: #00FF00;
11+
font-family: 'Courier New', Courier, monospace;
12+
margin: 0;
13+
padding: 2rem;
14+
line-height: 1.6;
15+
}
16+
17+
h1, h2, h3 {
18+
color: #39FF14;
19+
border-bottom: 1px solid #39FF14;
20+
padding-bottom: 0.25em;
21+
margin-top: 2rem;
22+
}
23+
24+
a {
25+
color: #00FFFF;
26+
text-decoration: none;
27+
}
28+
29+
a:hover {
30+
text-decoration: underline;
31+
}
32+
33+
code, pre {
34+
background-color: #111;
35+
color: #0f0;
36+
padding: 0.5em;
37+
display: block;
38+
overflow-x: auto;
39+
border-left: 4px solid #0f0;
40+
margin-bottom: 1em;
41+
}
42+
43+
button {
44+
background-color: #00FF00;
45+
color: #000;
46+
border: none;
47+
padding: 0.5em 1em;
48+
font-family: inherit;
49+
cursor: pointer;
50+
margin-top: 1em;
51+
transition: 0.2s ease;
52+
}
53+
54+
button:hover {
55+
background-color: #39FF14;
56+
}
57+
58+
.container {
59+
max-width: 800px;
60+
margin: auto;
61+
}
62+
63+
</style>
64+
</head>
65+
<body>
66+
67+
<div id="content">Loading...</div>
68+
69+
<script src="https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js"></script>
70+
<script>
71+
async function loadMarkdown(url) {
72+
const res = await fetch(url);
73+
const mdText = await res.text();
74+
75+
const md = markdownit({
76+
html: true,
77+
linkify: true,
78+
typographer: true
79+
})
80+
const result = md.render(mdText);
81+
82+
document.getElementById('content').innerHTML = result;
83+
}
84+
85+
// Change 'README.md' to your markdown filename or path
86+
loadMarkdown('Functions.md');
87+
</script>
88+
89+
</body>
90+
</html>
91+

docs/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<h1>Welcome to BScript</h1>
1212
<p>BScript is a simple scripting language inspired by Brainfuck.</p>
1313

14-
<a href="download.html">Download BScript</a>
14+
<a href="download.html">Download BScript</a><br>
15+
<a href="basics.html">Learn the Basics</a><br>
16+
<a href="functions.html">Explore Functions</a><br>
17+
<a href="screenfunctions.html">Screen Functions</a><br>
18+
<a href="advanced.html">Advanced Topics</a>
1519
</body>
1620
</html>

0 commit comments

Comments
 (0)