src/main/scala/s3/website/model/ssg.scala in s3_website-2.11.0 vs src/main/scala/s3/website/model/ssg.scala in s3_website-2.11.1

- old
+ new

@@ -9,18 +9,20 @@ } object Ssg { val automaticallySupportedSiteGenerators = Jekyll :: Nanoc :: Nil + val maxAutodetectDepth = automaticallySupportedSiteGenerators.map(_.outputDirectory).map(_.split(File.separatorChar).length).max + def autodetectSiteDir(workingDirectory: File): Option[File] = - recursiveListFiles(workingDirectory).find { file => + recursiveListFiles(maxAutodetectDepth)(workingDirectory).find { file => file.isDirectory && automaticallySupportedSiteGenerators.exists(ssg => file.getAbsolutePath.endsWith(ssg.outputDirectory)) } } case object Jekyll extends Ssg { def outputDirectory = "_site" } case object Nanoc extends Ssg { - def outputDirectory = "public/output" + def outputDirectory = s"public${File.separatorChar}output" } \ No newline at end of file