Update scalafmt settings

This commit is contained in:
eikek
2021-09-22 17:23:24 +02:00
parent c37f1d7c31
commit 9013f2de5b
277 changed files with 1579 additions and 1615 deletions

View File

@ -7,9 +7,9 @@ import scala.sys.process._
object ZolaPlugin extends AutoPlugin {
object autoImport {
val zolaRootDir = settingKey[File]("The root directory of zola")
val zolaRootDir = settingKey[File]("The root directory of zola")
val zolaOutputDir = settingKey[File]("The directory to put the final site")
val zolaCommand = settingKey[String]("The zola executable")
val zolaCommand = settingKey[String]("The zola executable")
val zolaTestBaseUrl =
settingKey[String]("The base-url to use when building the test site.")
@ -28,9 +28,9 @@ object ZolaPlugin extends AutoPlugin {
def zolaSettings: Seq[Setting[_]] =
Seq(
zolaRootDir := baseDirectory.value / "site",
zolaOutputDir := target.value / "zola-site",
zolaCommand := "zola",
zolaRootDir := baseDirectory.value / "site",
zolaOutputDir := target.value / "zola-site",
zolaCommand := "zola",
zolaTestBaseUrl := "http://localhost:1234",
zolaBuild := {
val logger = streams.value.log
@ -40,7 +40,7 @@ object ZolaPlugin extends AutoPlugin {
logger.info("Website built")
},
zolaBuildTest := {
val logger = streams.value.log
val logger = streams.value.log
val baseurl = zolaTestBaseUrl.value
logger.info("Building web site (test) using zola ...")
(Compile / resources).value