-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add site docs * Site doc
- Loading branch information
Showing
10 changed files
with
9,987 additions
and
2,519 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
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
import java.nio.charset.StandardCharsets | ||
import org.scalajs.linker.interface.ModuleSplitStyle | ||
|
||
lazy val currentYear: String = | ||
java.util.Calendar.getInstance().get(java.util.Calendar.YEAR).toString | ||
|
||
val scala33 = "3.3.1" | ||
|
||
inThisBuild( | ||
|
@@ -219,3 +222,35 @@ Global / onLoad := { | |
|
||
(Global / onLoad).value | ||
} | ||
enablePlugins( | ||
SiteScaladocPlugin, | ||
SitePreviewPlugin, | ||
ScalaUnidocPlugin, | ||
GhpagesPlugin | ||
) | ||
|
||
ScalaUnidoc / siteSubdirName := "" | ||
addMappingsToSiteDir( | ||
ScalaUnidoc / packageDoc / mappings, | ||
ScalaUnidoc / siteSubdirName | ||
) | ||
git.remoteRepo := "[email protected]:cheleb/laminar-form-derivation.git" | ||
ghpagesNoJekyll := true | ||
Compile / doc / scalacOptions ++= Seq( | ||
"-siteroot", | ||
"docs", | ||
"-project", | ||
"Laminar Form Derivation", | ||
"-groups", | ||
"-project-version", | ||
version.value, | ||
"-revision", | ||
version.value, | ||
"-default-templates", | ||
"static-site-main", | ||
"-project-footer", | ||
s"Copyright (c) 2022-$currentYear, Olivier NOUGUIER", | ||
"-Ygenerate-inkuire", | ||
"-skip-by-regex:demo\\..*", | ||
"-skip-by-regex:samples\\..*" | ||
) |
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 @@ | ||
laminar-form-derivation/ |
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,11 @@ | ||
--- | ||
layout: main | ||
--- | ||
|
||
<h1>Laminar Form Derivation</h1> | ||
|
||
<p> | ||
Laminar Form Derivation is a library that allows you to derive a form from a case class. | ||
</p> | ||
|
||
<span onclick='window.open("/laminar-form-derivation/index.html", "_blank")'> 🚀 Demo</span> |
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,11 @@ | ||
<html> | ||
|
||
<head> | ||
<title>Hello, world!</title> | ||
</head> | ||
|
||
<body> | ||
{{ content }} | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.