File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build: public/src/tailwind.min.css
6
6
cp overrides/* source/overrides/
7
7
docker run --rm -i -v ${PWD} /source:/docs -u $(shell id -u) squidfunk/mkdocs-material:8.1.3 build
8
8
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/
10
10
cp public/src/* build/src/
11
11
12
12
public/src/tailwind.min.css : public/index.html tailwindcss
Original file line number Diff line number Diff line change
1
+ User-agent: *
2
+ Disallow:
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ match -iP "Content-Type: text/html[\r\n]"
33
33
match -iP " Content-Encoding: gzip[\r\n]"
34
34
match -iP " Vary: Accept-Encoding[\r\n]"
35
35
36
+ curl -v $base /robots.txt
37
+ match " HTTP/.* 200"
38
+ match -iP " Content-Type: text/plain[;\r\n]"
39
+
36
40
curl -v $base /invalid
37
41
match " HTTP/.* 404"
38
42
match -i " Content-Type: text/html"
You can’t perform that action at this time.
0 commit comments