From d7927f0ad8a3fa0af35dafd1ba7ef342679125b7 Mon Sep 17 00:00:00 2001
From: Ajani Bilby <11359344+AjaniBilby@users.noreply.github.com>
Date: Sun, 14 Apr 2024 18:19:05 +1000
Subject: [PATCH] fixed scaling
---
builder/page.ts | 13 +++++++++----
docs/wasi/fd_close.md | 2 +-
docs/wasi/sock_shutdown.md | 2 +-
docs/wasix/fd_dup.md | 2 +-
docs/wasix/sock_bind.md | 2 +-
docs/wasix/sock_open.md | 2 +-
docs/web-assembly/instruction/i32/store.md | 2 +-
7 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/builder/page.ts b/builder/page.ts
index c205fa5..7080601 100644
--- a/builder/page.ts
+++ b/builder/page.ts
@@ -32,7 +32,9 @@ export async function CreatePage(toolbar: string, path: string) {
const document = `
+
${name}
+
@@ -56,10 +58,13 @@ export async function CreatePage(toolbar: string, path: string) {
export async function CreateFolderPage(toolbar: string, path: string) {
+ const name = Path2Name(path);
const html = `
- ${Path2Name(path)}
+
+ ${name}
+
@@ -136,8 +141,8 @@ function IngestPage(data: string) {
returns.push(ProcessSignatureLine(definitions, rest));
break;
}
- case "@typedef" : {
- IngestTypedef(definitions, rest);
+ case "@refer" : {
+ IngestReferal(definitions, rest);
break;
}
case "@function": {
@@ -183,7 +188,7 @@ function ProcessSignatureLine(ctx: TypeDefMap, line: string) {
return { name, type, description }
}
-function IngestTypedef(ctx: TypeDefMap, line: string) {
+function IngestReferal(ctx: TypeDefMap, line: string) {
const [ type, href ] = SplitString(line, " ");
ctx.set(type, href);
}
\ No newline at end of file
diff --git a/docs/wasi/fd_close.md b/docs/wasi/fd_close.md
index b4034a8..0c59f4d 100644
--- a/docs/wasi/fd_close.md
+++ b/docs/wasi/fd_close.md
@@ -1,4 +1,4 @@
-@typedef i32 /web-assembly/type/i32
+@refer i32 /web-assembly/type/i32
Close an open file descriptor.
@param fd: i32 - The file descriptor mapping to an open file to close.
@return error: i32 - The function returns a `Result` containing an `Errno` value indicating the success or failure of the operation. An `Errno::Success` value indicates a successful closure.
diff --git a/docs/wasi/sock_shutdown.md b/docs/wasi/sock_shutdown.md
index 5d351c5..db09987 100644
--- a/docs/wasi/sock_shutdown.md
+++ b/docs/wasi/sock_shutdown.md
@@ -1,4 +1,4 @@
-@typedef i32 /web-assembly/type/i32
+@refer i32 /web-assembly/type/i32
Shut down socket send and receive channels.
@param fd: i32 - The file descriptor of the socket to shut down.
@param how: i32 - Specifies which channels on the socket to shut down.
diff --git a/docs/wasix/fd_dup.md b/docs/wasix/fd_dup.md
index be95cbb..c06071b 100644
--- a/docs/wasix/fd_dup.md
+++ b/docs/wasix/fd_dup.md
@@ -1,6 +1,6 @@
Duplicates a file handle.
@function
-@typedef i32 /web-assembly/type/i32
+@refer i32 /web-assembly/type/i32
@param file_descriptor: i32
@return ret_fd: i32
---
diff --git a/docs/wasix/sock_bind.md b/docs/wasix/sock_bind.md
index fc08506..e7df814 100644
--- a/docs/wasix/sock_bind.md
+++ b/docs/wasix/sock_bind.md
@@ -1,5 +1,5 @@
@function
-@typedef i32 /web-assembly/type/i32
+@refer i32 /web-assembly/type/i32
@param fd: i32 - The file descriptor of the socket to bind
@param addr: i32 - A WebAssembly pointer to the address to bind the socket to
@return error: i32
diff --git a/docs/wasix/sock_open.md b/docs/wasix/sock_open.md
index 9d90f2d..9614e88 100644
--- a/docs/wasix/sock_open.md
+++ b/docs/wasix/sock_open.md
@@ -1,5 +1,5 @@
@function
-@typedef i32 /web-assembly/type/i32
+@refer i32 /web-assembly/type/i32
@param address_family: i32 - The address family of the socket
@param sock_type: i32 - The socket type, either datagram or stream
@param sock_proto: i32 - The socket protocol
diff --git a/docs/web-assembly/instruction/i32/store.md b/docs/web-assembly/instruction/i32/store.md
index bcd7143..4547086 100644
--- a/docs/web-assembly/instruction/i32/store.md
+++ b/docs/web-assembly/instruction/i32/store.md
@@ -1,4 +1,4 @@
-@typedef memarg /web-assembly/memarg
+@refer memarg /web-assembly/memarg
@param fd: i32 - file descriptor
@return error: i32
Close an open file descriptor.