From dc67e763e2c6fdb52eae8cbb170da0026a94447a Mon Sep 17 00:00:00 2001 From: mikeyzhong Date: Sat, 16 May 2026 14:58:55 +0200 Subject: [PATCH 1/3] Fix broken example links --- examples.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples.html b/examples.html index 26804dd5..2d9fafd6 100644 --- a/examples.html +++ b/examples.html @@ -285,7 +285,8 @@ iframe.src = path; if (codeButton) { - codeButton.href = `https://github.com/sparkjsdev/spark/blob/main${path}`; + const sourcePath = path.replace(/^\.\//, ""); + codeButton.href = `https://github.com/sparkjsdev/spark/blob/main/examples/${sourcePath}`; } if (fullPageButton) { @@ -531,4 +532,4 @@ - \ No newline at end of file + From 8093cccc9fd3a75082e234948e1ca3fbc949098e Mon Sep 17 00:00:00 2001 From: mikeyzhong Date: Sat, 16 May 2026 15:04:45 +0200 Subject: [PATCH 2/3] Fix examples GitHub source link --- examples.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples.html b/examples.html index 2d9fafd6..05376d77 100644 --- a/examples.html +++ b/examples.html @@ -285,8 +285,7 @@ iframe.src = path; if (codeButton) { - const sourcePath = path.replace(/^\.\//, ""); - codeButton.href = `https://github.com/sparkjsdev/spark/blob/main/examples/${sourcePath}`; + codeButton.href = `https://github.com/sparkjsdev/spark/blob/main/examples/${path}`; } if (fullPageButton) { From dcab17b47939cdb3f8dcd2784d5c45d3d3168b45 Mon Sep 17 00:00:00 2001 From: mikeyzhong Date: Mon, 18 May 2026 19:40:25 +0300 Subject: [PATCH 3/3] add new URL --- examples.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples.html b/examples.html index 05376d77..6317fe34 100644 --- a/examples.html +++ b/examples.html @@ -285,7 +285,7 @@ iframe.src = path; if (codeButton) { - codeButton.href = `https://github.com/sparkjsdev/spark/blob/main/examples/${path}`; + codeButton.href = new URL(`https://github.com/sparkjsdev/spark/blob/main/examples/${path}`).toString(); } if (fullPageButton) {