docs site: serve a robots.txt at the site root
This commit is contained in:
1 parent
44f040c27f
commit
fa1f38ced2
2 files changed
+6
No files matched your search
@@ -41,6 +41,9 @@ tar cf - \
|
|||||||
--exclude='requirements.txt' \
|
--exclude='requirements.txt' \
|
||||||
. | tar xf - -C "$SITE_SRC"
|
. | tar xf - -C "$SITE_SRC"
|
||||||
|
|
||||||
|
# A file that must sit at the site root (crawler rules), not under publishing/.
|
||||||
|
cp publishing/robots.txt "$SITE_SRC/robots.txt"
|
||||||
|
|
||||||
# 2. Build.
|
# 2. Build.
|
||||||
if [ ! -x "$VENV/bin/mkdocs" ]; then
|
if [ ! -x "$VENV/bin/mkdocs" ]; then
|
||||||
echo "Creating build venv at $VENV"
|
echo "Creating build venv at $VENV"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Documentation site crawler rules
|
||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
Reference in new issue
Block a user