-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
752f4a4
commit 1acc1f4
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ import com.typesafe.tools.mima.plugin.MimaPlugin | |
import scoverage.ScoverageKeys._ | ||
|
||
import com.typesafe.sbt.sbtghpages.GhpagesPlugin.autoImport._ | ||
import com.typesafe.sbt.site.SitePlugin.autoImport.makeSite | ||
import com.typesafe.sbt.site.SitePlugin.autoImport._ | ||
import com.typesafe.sbt.site.SiteScaladocPlugin.autoImport._ | ||
import com.typesafe.sbt.SbtGit.GitKeys.{gitBranch, gitRemoteRepo} | ||
import com.typesafe.sbt.site.preprocess.PreprocessPlugin.autoImport._ | ||
|
||
object BuildSettings { | ||
|
||
|
@@ -101,6 +103,10 @@ object BuildSettings { | |
ghpagesNoJekyll := false, | ||
gitRemoteRepo := "[email protected]:snowplow/snowplow-scala-analytics-sdk.git", | ||
gitBranch := Some("gh-pages"), | ||
excludeFilter in ghpagesCleanSite := "index.html" | ||
siteSubdirName in SiteScaladoc := s"${version.value}", | ||
preprocessVars in Preprocess := Map("VERSION" -> version.value), | ||
excludeFilter in ghpagesCleanSite := new FileFilter { | ||
def accept(f: File) = true | ||
} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Project Documentation</title> | ||
<script language="JavaScript"> | ||
<!-- | ||
function doRedirect() | ||
{ | ||
window.location.replace("@VERSION@"); | ||
} | ||
doRedirect(); | ||
//--> | ||
</script> | ||
</head> | ||
<body> | ||
<a href="@VERSION@">Go to the project documentation | ||
</a> | ||
</body> | ||
</html> |