-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
9 changed files
with
136 additions
and
10 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
14 changes: 14 additions & 0 deletions
14
hepek-docs/src/main/scala/files/integrations/HepekIntegrationsDocsPage.scala
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,14 @@ | ||
package files.integrations | ||
|
||
import files.hepek.HepekDocsPage | ||
|
||
trait HepekIntegrationsDocsPage extends HepekDocsPage { | ||
override def categoryPosts = List( | ||
Index, | ||
SharafFramework, | ||
PlayFramework | ||
) | ||
|
||
override def pageCategory = Some(Index.pageSettings.label) | ||
} | ||
|
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,27 @@ | ||
package files.integrations | ||
|
||
import utils.Imports.Bundle.*, Tags.* | ||
|
||
object Index extends HepekIntegrationsDocsPage { | ||
|
||
override def pageSettings = | ||
super.pageSettings | ||
.withTitle("Hepek Integrations") | ||
.withDescription("Hepek Integrations") | ||
|
||
override def blogSettings = super.blogSettings.withSections( | ||
introSection | ||
) | ||
|
||
|
||
val introSection = Section( | ||
"Hepek Integrations", | ||
frag( | ||
s""" | ||
Use Hepek Components in your favorite framework: | ||
- [Sharaf](${SharafFramework.ref}) | ||
- [Play Framework](${PlayFramework.ref}) | ||
""".md | ||
) | ||
) | ||
} |
39 changes: 39 additions & 0 deletions
39
hepek-docs/src/main/scala/files/integrations/PlayFramework.scala
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,39 @@ | ||
package files.integrations | ||
|
||
import utils.Imports._ | ||
import utils.Imports.Bundle.*, Tags.* | ||
import utils.Site | ||
|
||
object PlayFramework extends HepekIntegrationsDocsPage { | ||
|
||
override def pageSettings = | ||
super.pageSettings | ||
.withTitle("Play Framework") | ||
.withLabel("Play Framework") | ||
.withDescription("Play Framework - Hepek integrations") | ||
|
||
override def blogSettings = | ||
super.blogSettings.withSections(pfSection) | ||
|
||
val pfSection = Section( | ||
"Quick start", | ||
frag( | ||
s""" | ||
Hepek Play Framework integration: | ||
```scala | ||
// mill | ||
def ivyDeps = Agg( | ||
ivy"ba.sake::hepek-play:${Site.hepekVersion}" | ||
) | ||
// sbt | ||
libraryDependencies ++= Seq( | ||
"ba.sake" %% "hepek-play" % "${Site.hepekVersion}" | ||
) | ||
``` | ||
|
||
See the [example repo](https://github.com/sake92/play-hepek-example) | ||
""".md | ||
) | ||
) | ||
} |
31 changes: 31 additions & 0 deletions
31
hepek-docs/src/main/scala/files/integrations/SharafFramework.scala
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,31 @@ | ||
package files.integrations | ||
|
||
import utils.Imports._ | ||
import utils.Imports.Bundle.*, Tags.* | ||
import utils.Site | ||
|
||
object SharafFramework extends HepekIntegrationsDocsPage { | ||
|
||
override def pageSettings = | ||
super.pageSettings | ||
.withTitle("Sharaf") | ||
.withLabel("Sharaf") | ||
.withDescription("Sharaf - Hepek integrations") | ||
|
||
override def blogSettings = | ||
super.blogSettings.withSections(pfSection) | ||
|
||
val pfSection = Section( | ||
"Quick start", | ||
frag( | ||
s""" | ||
Hepek is supported natively in Sharaf. | ||
Examples: | ||
- [fullstack example](https://github.com/sake92/sharaf/tree/main/examples/fullstack) | ||
- [petclinic implementation](https://github.com/sake92/sharaf-petclinic) | ||
|
||
""".md | ||
) | ||
) | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package utils | ||
|
||
object Site { | ||
val url = "https://sake92.github.io/hepek" | ||
val name = "hepek" | ||
val url = "https://sake92.github.io/hepek" | ||
val name = "hepek" | ||
val hepekVersion = "0.19.0" | ||
} |