Skip to content

Commit 7e04181

Browse files
authored
Merge pull request #42 from clue-labs/robots
Add `robots.txt`
2 parents c868fb2 + 859b6db commit 7e04181

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build: public/src/tailwind.min.css
66
cp overrides/* source/overrides/
77
docker run --rm -i -v ${PWD}/source:/docs -u $(shell id -u) squidfunk/mkdocs-material:8.1.3 build
88
cp -r source/build/docs/ build/ && rm build/docs/sitemap.xml.gz
9-
cp public/.htaccess public/index.html build/
9+
cp public/.htaccess public/index.html public/robots.txt build/
1010
cp public/src/* build/src/
1111

1212
public/src/tailwind.min.css: public/index.html tailwindcss

public/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

tests/integration.bash

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ match -iP "Content-Type: text/html[\r\n]"
3333
match -iP "Content-Encoding: gzip[\r\n]"
3434
match -iP "Vary: Accept-Encoding[\r\n]"
3535

36+
curl -v $base/robots.txt
37+
match "HTTP/.* 200"
38+
match -iP "Content-Type: text/plain[;\r\n]"
39+
3640
curl -v $base/invalid
3741
match "HTTP/.* 404"
3842
match -i "Content-Type: text/html"

0 commit comments

Comments
 (0)