website: fix paths
This commit is contained in:
+4
-2
@@ -72,8 +72,8 @@ class SiteGeneratorMain {
|
|||||||
|
|
||||||
fun findTemplateDir(): File {
|
fun findTemplateDir(): File {
|
||||||
val path = "src/main/templates"
|
val path = "src/main/templates"
|
||||||
for (p in arrayList(".", "website", "library/website")) {
|
for (p in listOf(".", "website", "docs/website", "libraries/docs/website")) {
|
||||||
val sourceDir = File(".", path)
|
val sourceDir = File(p, path)
|
||||||
if (sourceDir.exists()) {
|
if (sourceDir.exists()) {
|
||||||
return sourceDir
|
return sourceDir
|
||||||
}
|
}
|
||||||
@@ -89,6 +89,8 @@ class SiteGeneratorMain {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun main(args : Array<String>) {
|
fun main(args : Array<String>) {
|
||||||
|
println("Current working directory: " + System.getProperty("user.dir"))
|
||||||
|
|
||||||
val main = SiteGeneratorMain()
|
val main = SiteGeneratorMain()
|
||||||
main.generateSite()
|
main.generateSite()
|
||||||
main.copyApiDocs()
|
main.copyApiDocs()
|
||||||
|
|||||||
Reference in New Issue
Block a user