Skip to content

Commit 3f08c0e

Browse files
authored
Create documentation.html
1 parent f6ea5a7 commit 3f08c0e

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

documentation.html

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>BCode Documentation</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<div class="container">
11+
<header>
12+
<h1>📚 BCode Documentation 📚</h1>
13+
<nav>
14+
<ul>
15+
<li><a href="index.html">Home</a></li>
16+
<li><a href="documentation.html">Documentation</a></li>
17+
<li><a href="#">GitHub</a></li>
18+
</ul>
19+
</nav>
20+
</header>
21+
<main>
22+
<section class="docs">
23+
<h2>Getting Started</h2>
24+
<p>To declare a variable in BCode:</p>
25+
<div class="code-block">
26+
<code>var myNumber: 10</code>
27+
</div>
28+
29+
<h2>Functions</h2>
30+
<p>Defining a function:</p>
31+
<div class="code-block">
32+
<code>
33+
function add(a, b)<br>
34+
&nbsp;&nbsp;return a + b<br>
35+
end
36+
</code>
37+
</div>
38+
39+
<h2>Control Flow</h2>
40+
<p>If-Else example:</p>
41+
<div class="code-block">
42+
<code>
43+
if myNumber > 5 then<br>
44+
&nbsp;&nbsp;log("Number is greater than 5")<br>
45+
else<br>
46+
&nbsp;&nbsp;log("Number is 5 or less")<br>
47+
end
48+
</code>
49+
</div>
50+
</section>
51+
</main>
52+
<footer>
53+
<p>© 2024 BubuTheDev - Licensed under MIT</p>
54+
</footer>
55+
</div>
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)