We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a75e82 commit 6312201Copy full SHA for 6312201
site/themes/arangodb-docs-theme/layouts/robots.txt
@@ -1,8 +1,13 @@
1
+{{/* Allow DocSearch to access everything */ -}}
2
+User-agent: Algolia Crawler
3
+Disallow:
4
+
5
+{{ $isProduction := eq .Site.BaseURL "https://docs.arango.ai" -}}
6
+{{ if $isProduction -}}
7
User-agent: *
-{{- if (findRE `^https://docs(-dev)?\.arangodb\.com(?:/|:\d{1,5}/?)?$` .Site.BaseURL 1) }}
8
Disallow: /nav.html
-Disallow: /hooks
-{{- else }}
-{{- /* Don't let search engines index deploy previews on Netlify */}}
9
+{{ else -}}
10
+{{/* Don't let search engines index deploy previews on Netlify */ -}}
11
+User-agent: *
12
Disallow: /
-{{- end }}
13
+{{ end -}}
0 commit comments