Skip to content

Commit 116d71b

Browse files
author
emmanue1
committed
Add robot.txt
1 parent 1924c4f commit 116d71b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

robot.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
User-agent: *
2+
Disallow: /js/
3+
Disallow: /css/
4+
Disallow: /website/
5+
Allow: /

website/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ task prepareIndexHtml {
5252
task copyFiles {
5353
dependsOn prepareIndexHtml
5454
doLast {
55-
['src/.htaccess', 'src/favicon.ico', 'src/google8db921c12949ed8c.html', 'src/sitemap.xml', 'build/html/index.html'].each { file -> ant.copy(file: file, todir: '..') }
55+
['src/.htaccess', 'src/favicon.ico', 'src/google8db921c12949ed8c.html', 'src/sitemap.xml', 'src/robot.txt', 'build/html/index.html'].each { file -> ant.copy(file: file, todir: '..') }
5656
}
5757
}
5858

@@ -62,7 +62,7 @@ task build {
6262

6363
task clean {
6464
doLast {
65-
['../.htaccess', '../favicon.ico', '../google8db921c12949ed8c.html', '../index.html'].each { file -> ant.delete(file: file) }
65+
['../.htaccess', '../favicon.ico', '../google8db921c12949ed8c.html', '../sitemap.xml', '../robot.txt', '../index.html'].each { file -> ant.delete(file: file) }
6666
['../css', '../img', '../js', 'build'].each { dir -> ant.delete(dir: dir) }
6767
}
6868
}

website/src/robot.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
User-agent: *
2+
Disallow: /js/
3+
Disallow: /css/
4+
Disallow: /website/
5+
Allow: /

0 commit comments

Comments
 (0)