Skip to content

Commit 6312201

Browse files
committed
Fix URL in robots.txt template, allow-list Algolia crawler
1 parent 4a75e82 commit 6312201

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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 -}}
17
User-agent: *
2-
{{- if (findRE `^https://docs(-dev)?\.arangodb\.com(?:/|:\d{1,5}/?)?$` .Site.BaseURL 1) }}
38
Disallow: /nav.html
4-
Disallow: /hooks
5-
{{- else }}
6-
{{- /* 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: *
712
Disallow: /
8-
{{- end }}
13+
{{ end -}}

0 commit comments

Comments
 (0)