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

- old
+ new

@@ -9,13 +9,11 @@ } 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(maxAutodetectDepth)(workingDirectory).find { file => + recursiveListFiles(workingDirectory).find { file => file.isDirectory && automaticallySupportedSiteGenerators.exists(ssg => file.getAbsolutePath.endsWith(ssg.outputDirectory)) } } case object Jekyll extends Ssg { \ No newline at end of file