Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate docs #161

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- name: Build docs
run: sbt laikaSite
run: sbt "project docs" laikaSite
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down
99 changes: 53 additions & 46 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,58 @@ lazy val benchmarks = (project in file("benchmarks"))
name := "benchmarks",
).enablePlugins(JmhPlugin)

lazy val docs = (project in file("docs"))
.dependsOn(core)
.enablePlugins(LaikaPlugin)
.settings(
name := "docs",
laikaTheme := {
import laika.ast.Path.Root
import laika.ast.{Image, ExternalTarget}
import laika.helium.config.*
import laika.helium.Helium

Helium.defaults.site
.landingPage(
title = Some("Spark Fast Tests"),
subtitle = Some("Unit testing your Apache Spark application"),
latestReleases = Seq(
ReleaseInfo("Latest Stable Release", "1.0.0")
),
license = Some("MIT"),
titleLinks = Seq(
VersionMenu.create(unversionedLabel = "Getting Started"),
LinkGroup.create(
IconLink.external("https:/mrpowers-io/spark-fast-tests", HeliumIcon.github)
)
),
linkPanel = Some(
LinkPanel(
"Documentation",
TextLink.internal(Root / "about" / "README.md", "Spark Fast Tests")
)
),
projectLinks = Seq(
LinkGroup.create(
TextLink.internal(Root / "api" / "com" / "github" / "mrpowers" / "spark" / "fast" / "tests" / "index.html", "API (Scaladoc)")
)
),
teasers = Seq(
Teaser("Fast", "Handle small dataframes effectively and provide column assertions"),
Teaser("Flexible", "Works fine with scalatest, uTest, munit")
)
)
.build
},
laikaIncludeAPI := true,
laikaExtensions ++= {
import laika.format.Markdown
import laika.config.SyntaxHighlighting
Seq(Markdown.GitHubFlavor, SyntaxHighlighting)
},
Laika / sourceDirectories := Seq((ThisBuild / baseDirectory).value / "docs")
)

credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")

licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))
Expand All @@ -66,49 +118,4 @@ publishMavenStyle := true

publishTo := sonatypePublishToBundle.value

Global / useGpgPinentry := true

enablePlugins(LaikaPlugin)

import laika.format.Markdown
import laika.config.SyntaxHighlighting
import laika.ast.Path.Root
import laika.ast.{Image, ExternalTarget}
import laika.helium.config.*
import laika.helium.Helium

laikaTheme := Helium.defaults.site
.landingPage(
title = Some("Spark Fast Tests"),
subtitle = Some("Unit testing your Apache Spark application"),
latestReleases = Seq(
ReleaseInfo("Latest Stable Release", "1.0.0")
),
license = Some("MIT"),
titleLinks = Seq(
VersionMenu.create(unversionedLabel = "Getting Started"),
LinkGroup.create(
IconLink.external("https:/mrpowers-io/spark-fast-tests", HeliumIcon.github)
)
),
linkPanel = Some(
LinkPanel(
"Documentation",
TextLink.internal(Root / "about" / "README.md", "Spark Fast Tests")
)
),
projectLinks = Seq(
LinkGroup.create(
TextLink.internal(Root / "api" / "com" / "github" / "mrpowers" / "spark" / "fast" / "tests" / "index.html", "API (Scaladoc)")
)
),
teasers = Seq(
Teaser("Fast", "Handle small dataframes effectively and provide column assertions"),
Teaser("Flexible", "Works fine with scalatest, uTest, munit")
)
)
.build

laikaIncludeAPI := true
laikaExtensions ++= Seq(Markdown.GitHubFlavor, SyntaxHighlighting)
Laika / sourceDirectories := Seq((ThisBuild / baseDirectory).value / "docs")
Global / useGpgPinentry := true
1 change: 0 additions & 1 deletion docs/about/README.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/about/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../README.md