From 78ccc2ff4cb6a3bebd2e7dc553b1af26c8409f57 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 25 Feb 2025 08:49:25 +0530 Subject: [PATCH 1/5] fix: Do not index /view page --- src/routes/view/+page.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/view/+page.svelte b/src/routes/view/+page.svelte index 936fc0d13..b2d253341 100644 --- a/src/routes/view/+page.svelte +++ b/src/routes/view/+page.svelte @@ -5,4 +5,8 @@ onMount(initHandler); + + + + From 51591ba075579e92bc0386433ea8b4b95ae796c5 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 25 Feb 2025 08:49:46 +0530 Subject: [PATCH 2/5] chore: Add sitemap --- static/sitemap.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 static/sitemap.xml diff --git a/static/sitemap.xml b/static/sitemap.xml new file mode 100644 index 000000000..e9909beb1 --- /dev/null +++ b/static/sitemap.xml @@ -0,0 +1,13 @@ + + + + https://mermaid.live/ + https://mermaid.live/edit + + + + From cdc7f9faa4d3748d276822f216be5d3253d76319 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 25 Feb 2025 08:50:03 +0530 Subject: [PATCH 3/5] fix: Add redirect for /index.html --- src/routes/index.html/+page.svelte | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/routes/index.html/+page.svelte diff --git a/src/routes/index.html/+page.svelte b/src/routes/index.html/+page.svelte new file mode 100644 index 000000000..feed97dcd --- /dev/null +++ b/src/routes/index.html/+page.svelte @@ -0,0 +1,11 @@ + From fa0498f75d85196dd69cdaa572d9ea052fed768c Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 25 Feb 2025 08:54:26 +0530 Subject: [PATCH 4/5] chore: Add sitemap to robots.txt --- static/robots.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/robots.txt b/static/robots.txt index e9e57dc4d..350406a1b 100644 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,3 +1,4 @@ # https://www.robotstxt.org/robotstxt.html User-agent: * -Disallow: +Sitemap: https://mermaid.live/sitemap.xml +Disallow: From fb5894e09378bbf4ae60dcb47965ce2c614a33eb Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Tue, 25 Feb 2025 12:08:54 +0530 Subject: [PATCH 5/5] Use netlify to redirect users --- netlify.toml | 8 +++++++- src/routes/index.html/+page.svelte | 11 ----------- 2 files changed, 7 insertions(+), 12 deletions(-) delete mode 100644 src/routes/index.html/+page.svelte diff --git a/netlify.toml b/netlify.toml index de5a33967..eee8c4415 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,4 +3,10 @@ MERMAID_DOMAIN = 'mermaid.live' MERMAID_RENDERER_URL = 'https://mermaid.ink' MERMAID_KROKI_RENDERER_URL = 'https://kroki.io' - MERMAID_IS_ENABLED_MERMAID_CHART_LINKS ='true' \ No newline at end of file + MERMAID_IS_ENABLED_MERMAID_CHART_LINKS ='true' + +[[redirects]] + from = "/index.html" + to = "/edit" + status = 301 + force = true diff --git a/src/routes/index.html/+page.svelte b/src/routes/index.html/+page.svelte deleted file mode 100644 index feed97dcd..000000000 --- a/src/routes/index.html/+page.svelte +++ /dev/null @@ -1,11 +0,0 @@ -