Skip to content

Commit

Permalink
fixed scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
AjaniBilby committed Apr 14, 2024
1 parent 4062ae5 commit d7927f0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
13 changes: 9 additions & 4 deletions builder/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export async function CreatePage(toolbar: string, path: string) {
const document = `<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>${name}</title>
<meta property="og:title" content="${name}"/>
<link rel="stylesheet" href="/main.css"/>
<script src="/index.js"></script>
</head>
Expand All @@ -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 = `<!DOCTYPE html>
<html>
<head>
<title>${Path2Name(path)}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>${name}</title>
<meta property="og:title" content="${name}"/>
<link rel="stylesheet" href="/main.css"/>
<script src="/index.js"></script>
</head>
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion docs/wasi/fd_close.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/wasi/sock_shutdown.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/wasix/fd_dup.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion docs/wasix/sock_bind.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/wasix/sock_open.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/web-assembly/instruction/i32/store.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit d7927f0

Please sign in to comment.