Skip to content

Commit 75bfb3c

Browse files
authored
Add tests and links (#2)
* Add tests * Add comments
1 parent 9b848eb commit 75bfb3c

File tree

3 files changed

+252
-39
lines changed

3 files changed

+252
-39
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
version: 0.15.1
2323
- run: zig build activate
2424
- run: zig build
25+
- run: zig test -fllvm src/zorth.zig
2526
- uses: actions/upload-pages-artifact@v3
2627
with:
2728
path: zig-out

demo/index.html

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
integrity="sha384-tStR1zLfWgsiXCF3IgfB3lBa8KmBe/lG287CL9WCeKgQYcp1bjb4/+mwN6oti4Co" crossorigin="anonymous" />
1111
<title>zorth: Forth in Zig and WebAssembly</title>
1212
<meta name="description" content="zorth: Forth in Zig and WebAssembly" />
13-
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🧮</text></svg>">
13+
<link rel="icon"
14+
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🧮</text></svg>">
1415
<script src="./coi-serviceworker.min.js"></script>
16+
<style>
17+
a {
18+
text-decoration: none;
19+
}
20+
</style>
1521

1622
<script type="module">
1723
import "https://cdn.jsdelivr.net/npm/@xterm/[email protected]/lib/xterm.min.js";
@@ -45,6 +51,22 @@ <h1 class="mt-5">
4551
d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
4652
</svg>
4753
</a>
54+
<a href="https://www.youtube.com/watch?v=Bar4IFc1NpM" target="_blank">
55+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="24" viewBox="0 0 30 24">
56+
<g>
57+
<path
58+
d="M14.4848 20C14.4848 20 23.5695 20 25.8229 19.4C27.0917 19.06 28.0459 18.08 28.3808 16.87C29 14.65 29 9.98 29 9.98C29 9.98 29 5.34 28.3808 3.14C28.0459 1.9 27.0917 0.94 25.8229 0.61C23.5695 0 14.4848 0 14.4848 0C14.4848 0 5.42037 0 3.17711 0.61C1.9286 0.94 0.954148 1.9 0.59888 3.14C0 5.34 0 9.98 0 9.98C0 9.98 0 14.65 0.59888 16.87C0.954148 18.08 1.9286 19.06 3.17711 19.4C5.42037 20 14.4848 20 14.4848 20Z"
59+
fill="#FF0033" />
60+
<path d="M19 10L11.5 5.75V14.25L19 10Z" fill="white" />
61+
</g>
62+
</svg>
63+
</a>
64+
<a href="https://html-preview.github.io/?url=https://github.com/jburgy/blog/blob/main/talks/zorth.html" target="_blank">
65+
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
66+
<path d="M0 0h24v24H0z" fill="none" />
67+
<path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" />
68+
</svg>
69+
</a>
4870
</h1>
4971
<p class="lead">
5072
Forth in Zig and WebAssembly

0 commit comments

Comments
 (0)