Skip to content
Merged
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
13 changes: 13 additions & 0 deletions tools/adev-patches/replace-robots.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/adev/src/robots.txt b/adev/src/robots.txt
index 20a871a810..8fd1157557 100644
--- a/adev/src/robots.txt
+++ b/adev/src/robots.txt
@@ -1,3 +1,6 @@
-# Allow all URLs (see https://www.robotstxt.org/robotstxt.html)
+# Allow most URLs, disallow auto-generated English /api/ from crawlers.
+# /api/ is not localized (auto-generated from upstream Angular source).
User-agent: *
-Disallow:
+Disallow: /api/
+
+Sitemap: https://angular.jp/sitemap.xml
Loading