Skip to content

Commit 30f6861

Browse files
committed
chore(docs.angularjs.org): allow crawling of examples, don't deploy e2e test files
1 parent c0adcc3 commit 30f6861

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ module.exports = function(grunt) {
341341
},
342342
{
343343
cwd: 'build/docs',
344-
src: '**',
344+
src: ['**', '!ptore2e/**'],
345345
dest: 'deploy/docs/',
346346
expand: true
347347
},

docs/app/assets/robots.txt

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
User-agent: *
22

3-
Disallow: /examples/
4-
Disallow: /ptore2e/
5-
Disallow: /Error404.html
6-
7-
# The js / map files in the root are used by the embedded examples, not by the app itself
8-
Disallow: /*.js$
9-
Disallow: /*.map$
10-
11-
# (Javascript) crawlers need to access JS files
12-
Allow: /components/*.js
13-
Allow: /js/*.js
3+
# The map files are not required by the app
4+
Disallow: /*.map$

scripts/docs.angularjs.org-firebase/firebase.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@
2929
],
3030
"headers": [
3131
{
32-
"source": "/partials/**",
32+
"source": "Error404.html",
33+
"headers" : [{
34+
"key" : "X-Robots-Tag",
35+
"value" : "noindex"
36+
}]
37+
},
38+
{
39+
"source": "/@(partials|examples)/**",
3340
"headers" : [{
3441
"key" : "X-Robots-Tag",
3542
"value" : "noindex"

0 commit comments

Comments
 (0)