Skip to content

Commit

Permalink
Merge pull request #1614 from mermaid-js/sidv/indexing
Browse files Browse the repository at this point in the history
Indexing fixes
  • Loading branch information
sidharthv96 authored Feb 25, 2025
2 parents 03404e8 + fb5894e commit 20cadca
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
8 changes: 7 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
MERMAID_IS_ENABLED_MERMAID_CHART_LINKS ='true'

[[redirects]]
from = "/index.html"
to = "/edit"
status = 301
force = true
4 changes: 4 additions & 0 deletions src/routes/view/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
onMount(initHandler);
</script>

<svelte:head>
<meta name="robots" content="noindex" />
</svelte:head>

<View />
3 changes: 2 additions & 1 deletion static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Sitemap: https://mermaid.live/sitemap.xml
Disallow:
13 changes: 13 additions & 0 deletions static/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://mermaid.live/</loc>
<loc>https://mermaid.live/edit</loc>
</url>


</urlset>

0 comments on commit 20cadca

Please sign in to comment.