diff --git a/netlify.toml b/netlify.toml index de5a3396..eee8c441 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/view/+page.svelte b/src/routes/view/+page.svelte index 936fc0d1..b2d25334 100644 --- a/src/routes/view/+page.svelte +++ b/src/routes/view/+page.svelte @@ -5,4 +5,8 @@ onMount(initHandler); + + + + diff --git a/static/robots.txt b/static/robots.txt index e9e57dc4..350406a1 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: diff --git a/static/sitemap.xml b/static/sitemap.xml new file mode 100644 index 00000000..e9909beb --- /dev/null +++ b/static/sitemap.xml @@ -0,0 +1,13 @@ + + + + https://mermaid.live/ + https://mermaid.live/edit + + + + diff --git a/yarn.lock b/yarn.lock index 46c4881b..0bb0c44d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5426,9 +5426,9 @@ prettier-plugin-tailwindcss@^0.6.0: integrity sha512-YxaYSIvZPAqhrrEpRtonnrXdghZg1irNg4qrjboCXrpybLWVs55cW2N3juhspVJiO0JBvYJT8SYsJpc8OQSnsA== prettier@^3.1.0: - version "3.5.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.1.tgz#22fac9d0b18c0b92055ac8fb619ac1c7bef02fb7" - integrity sha512-hPpFQvHwL3Qv5AdRvBFMhnKo4tYxp0ReXiPn2bxkiohEX6mBeBwEpBSQTkD458RaaDKQMYSp4hX4UtfUTA5wDw== + version "3.5.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.2.tgz#d066c6053200da0234bf8fa1ef45168abed8b914" + integrity sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg== pretty-bytes@^5.6.0: version "5.6.0" @@ -6210,9 +6210,9 @@ svelte-preprocess@^6.0.0: integrity sha512-PLG2k05qHdhmRG7zR/dyo5qKvakhm8IJ+hD2eFRQmMLHp7X3eJnjeupUtvuRpbNiF31RjVw45W+abDwHEmP5OA== svelte@^5.0.0: - version "5.20.2" - resolved "https://registry.yarnpkg.com/svelte/-/svelte-5.20.2.tgz#b08c003e982a32c588dcbbf24c1ac8606c0654dd" - integrity sha512-aYXJreNUiyTob0QOzRZeBXZMGeFZDch6SrSRV8QTncZb6zj0O3BEdUzPpojuHQ1pTvk+KX7I6rZCXPUf8pTPxA== + version "5.20.4" + resolved "https://registry.yarnpkg.com/svelte/-/svelte-5.20.4.tgz#defab12c01a5c6502d04f2028a81923269860e0d" + integrity sha512-2Mo/AfObaw9zuD0u1JJ7sOVzRCGcpETEyDkLbtkcctWpCMCIyT0iz83xD8JT29SR7O4SgswuPRIDYReYF/607A== dependencies: "@ampproject/remapping" "^2.3.0" "@jridgewell/sourcemap-codec" "^1.5.0"