diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..6a26ec4 --- /dev/null +++ b/icon.svg @@ -0,0 +1,4 @@ + diff --git a/src/index.ts b/src/index.ts index 1e82d3e..aab80d0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,12 @@ Bun.serve({ }); } + if (url.pathname === "/icon.svg") { + return new Response(Bun.file(import.meta.dir + "/../icon.svg"), { + headers: { "Content-Type": "image/svg+xml" }, + }); + } + // List available diagrams if (url.pathname === "/") { return new Response(generateIndexHTML(diagrams), { @@ -109,7 +115,7 @@ function generate404HTML(title: string, message: string): string {
Interactive code walkthrough diagrams
${content} +