forked from sbt/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
25 lines (24 loc) · 1.31 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import com.typesafe.sbt.site.PamfletSupport
import Docs._
lazy val root = (project in file("."))
// landing page
.settings(site.settings ++ site.nanocSupport(): _*)
// Getting Started guide
.settings(PamfletSupport.settings(Tutorial) ++
site.addMappingsToSiteDir(mappings in Tutorial, s"""$targetSbtBinaryVersion/tutorial"""): _*)
// Reference
.settings(PamfletSupport.settings(Ref) ++
site.addMappingsToSiteDir(mappings in Ref, s"""$targetSbtBinaryVersion/docs"""): _*)
// Redirects
.settings(redirectSettings ++
site.addMappingsToSiteDir(mappings in Redirect, s"""$targetSbtBinaryVersion/docs"""): _*)
// Github Pages. See project/Docs.scala
.settings(customGhPagesSettings: _*)
// NOTE - PDF settings must be done externally like this because pdf generation generically looks
// through `mappings in Config` for Combined+Pages.md to generate PDF from, and therefore we
// can't create a circular dpeendnecy by adding it back into the original mappings.
.settings(Pdf.settings ++
Pdf.settingsFor(Tutorial, "sbt-tutorial") ++
site.addMappingsToSiteDir(mappings in Pdf.generatePdf in Tutorial, s"""$targetSbtBinaryVersion/tutorial""") ++
Pdf.settingsFor(Ref, "sbt-reference") ++
site.addMappingsToSiteDir(mappings in Pdf.generatePdf in Ref, s"""$targetSbtBinaryVersion/docs"""): _*)