Removed robots.txt from repo and added docs/build back to the gitignore list.

This commit is contained in:
Clinton Alexander 2017-03-28 14:59:16 +01:00
parent 8862920f9a
commit 1b5182fe24
3 changed files with 5 additions and 13 deletions

1
.gitignore vendored
View File

@ -14,7 +14,6 @@ local.properties
# General build files
**/build/*
!docs/build/*
lib/dokka.jar

View File

@ -16,21 +16,16 @@ task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
}
task apidocs(dependsOn: [':jar', 'dokka', 'dokkaJavadoc'])
task buildDocs(dependsOn: ['apidocs', 'copyRobots', 'makeDocs'])
task copyRobots(type: Copy) {
from "robots.txt"
into "build/html"
}
task buildDocs(dependsOn: ['apidocs', 'makeDocs'])
task installDocsiteRequirements(type: Exec) {
// TODO: Non-msys Windows script
commandLine 'cmd', '/c', 'sh ./install-docsite-requirements.sh' // Windows
commandLine './install-docsite-requirements.sh' // Linux
commandLine 'cmd', '/c', 'sh install-docsite-requirements.sh' // Windows
commandLine 'sh', './install-docsite-requirements.sh' // Linux
}
task makeDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
// TODO: Non-msys Windows script
commandLine 'cmd', '/c', 'sh ./make-docsite.sh' // Windows
commandLine './make-docsite.sh' // Linux
commandLine 'cmd', '/c', 'sh make-docsite.sh' // Windows
commandLine 'sh', './make-docsite.sh' // Linux
}

View File

@ -1,2 +0,0 @@
User-agent: *
Disallow: /