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/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); + + + + 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: 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 + + + +