script to automate updates to robots.txt #11199

Rewritten the script to work with a 'robots.txt' template file and we
generate the 'robots.txt' from the template when we execute the script.
It's found to be a better alternative to editing the 'robots.txt' file
in-place.
This commit is contained in:
cxxboy
2021-04-27 17:54:55 -04:00
parent 2969bc0f3e
commit bd1fc0e88d
5 changed files with 42 additions and 96 deletions
+14
View File
@@ -0,0 +1,14 @@
User-Agent: *
Sitemap: http://docs.soliditylang.org/sitemap.xml
Allow: /en/latest/
Allow: /en/v0.7.6/
Allow: /en/v{{ LATEST_VERSION }}/
Allow: /_/downloads/en/latest/
Allow: /_/downloads/en/0.7.6/
Allow: /_/downloads/en/{{ LATEST_VERSION }}/
# Prevent documentation for the development branches and older Solidity
# versions from showing up in search results.
Disallow: /en/*
Disallow: /_/downloads/en/*