Skip to content

Commit a08bbfb

Browse files
committed
Dynamically create robots.txt
1 parent a880b3f commit a08bbfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/doc-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ jobs:
213213
(cd doc && mv .git ../git && mv .gitattributes ../gitattributes)
214214
mv CHANGES.html doc
215215
fi
216+
# Create the robots.txt file to discourage web crawlers from indexing doc preview webpages
217+
echo "User-agent: *" > doc/robots.txt
218+
echo "Disallow: /" >> doc/robots.txt
216219
# Zip everything for increased performance
217220
zip -r doc.zip doc
218221

0 commit comments

Comments
 (0)