Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build: public/src/tailwind.min.css
cp overrides/* source/overrides/
docker run --rm -i -v ${PWD}/source:/docs -u $(shell id -u) squidfunk/mkdocs-material:8.1.3 build
cp -r source/build/docs/ build/ && rm build/docs/sitemap.xml.gz
cp public/.htaccess public/index.html build/
cp public/.htaccess public/index.html public/robots.txt build/
cp public/src/* build/src/

public/src/tailwind.min.css: public/index.html tailwindcss
Expand Down
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
4 changes: 4 additions & 0 deletions tests/integration.bash
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ match -iP "Content-Type: text/html[\r\n]"
match -iP "Content-Encoding: gzip[\r\n]"
match -iP "Vary: Accept-Encoding[\r\n]"

curl -v $base/robots.txt
match "HTTP/.* 200"
match -iP "Content-Type: text/plain[;\r\n]"

curl -v $base/invalid
match "HTTP/.* 404"
match -i "Content-Type: text/html"
Expand Down