Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore(docs.angularjs.org): allow crawling but not indexing of partials/
Browse files Browse the repository at this point in the history
The sitemap.xml might also prevent the indexing, as the partials are not
listed.

Related to #16432 
Closes #16457
  • Loading branch information
Narretz committed Feb 15, 2018
1 parent 9645a08 commit 3eabaab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/app/assets/robots.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
User-agent: *

Disallow: /examples/
Disallow: /partials/
Disallow: /ptore2e/
Disallow: /Error404.html

Expand Down
9 changes: 9 additions & 0 deletions scripts/docs.angularjs.org-firebase/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
"source": "**/*!(.@(jpg|jpeg|gif|png|html|js|map|json|css|svg|ttf|txt|woff|woff2|eot|xml))",
"function": "sendFile"
}
],
"headers": [
{
"source": "/partials/**",
"headers" : [{
"key" : "X-Robots-Tag",
"value" : "noindex"
}]
}
]
}
}

0 comments on commit 3eabaab

Please sign in to comment.