Skip to content

Commit

Permalink
Removed hugo site
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Aug 20, 2023
1 parent 56be071 commit 060bd45
Show file tree
Hide file tree
Showing 262 changed files with 130 additions and 10,979 deletions.
Empty file removed website/.hugo_build.lock
Empty file.
6 changes: 0 additions & 6 deletions website/archetypes/default.md

This file was deleted.

136 changes: 121 additions & 15 deletions website/build.sbt
Original file line number Diff line number Diff line change
@@ -1,21 +1,127 @@
import laika.markdown.github.GitHubFlavor
import laika.parse.code.SyntaxHighlighting
import laika.rewrite.nav.PrettyURLs
import laika.helium.Helium
import laika.theme.config.Color
import laika.theme.config.Color._
import laika.helium.config.ColorQuintet
import laika.helium.config._
import laika.ast.Path.Root
import laika.ast.Image
import laika.ast.Length
import laika.ast.LengthUnit
import com.comcast.ip4s._
import scala.concurrent.duration.DurationInt
import laika.sbt.LaikaPreviewConfig

ThisBuild / scalaVersion := "3.3.0"

enablePlugins(LaikaPlugin, GhpagesPlugin)

Global / onChangedBuildSource := ReloadOnSourceChanges

val scala3Version = "3.3.0"

lazy val tyrianSite =
(project in file("."))
.enablePlugins(GhpagesPlugin)
.settings(
name := "indigo site publisher",
version := "0.0.1",
scalaVersion := scala3Version,
organization := "io.indigo",
siteSourceDirectory := target.value / ".." / "public",
makeSite / includeFilter := "*",
makeSite / excludeFilter := ".DS_Store",
git.remoteRepo := "git@github.com:PurpleKingdomGames/tyrian.git",
ghpagesNoJekyll := true
Laika / sourceDirectories := Seq(
baseDirectory.value / "../tyrian-docs/target/mdoc/"
)

laikaExtensions := Seq(GitHubFlavor, SyntaxHighlighting, PrettyURLs)

/*
Dark purple - #29016a
hot pink - #ae2be2 / less hot: 9003c8
light pink - #efc6ff
Purpleish - 6237a7
Light grey - e4e4e4
Light purple - a888db
*/

laikaTheme :=
Helium.defaults.all
.metadata(
title = Some("Tyrian"),
language = Some("en")
)
.all
.themeColors(
primary = Color.hex("29016a"),
secondary = Color.hex("9003c8"),
primaryMedium = Color.hex("a888db"),
primaryLight = Color.hex("e4e4e4"),
text = Color.hex("5f5f5f"),
background = Color.hex("ffffff"),
bgGradient = (Color.hex("095269"), Color.hex("007c99"))
)
.site
.darkMode
.themeColors(
primary = Color.hex("29016a"),
secondary = Color.hex("9003c8"),
primaryMedium = Color.hex("a888db"),
primaryLight = Color.hex("e4e4e4"),
text = Color.hex("5f5f5f"),
background = Color.hex("ffffff"),
bgGradient = (Color.hex("29016a"), Color.hex("ffffff"))
)
.all
.syntaxHighlightingColors(
base = ColorQuintet(
hex("2a3236"),
hex("8c878e"),
hex("b2adb4"),
hex("bddcee"),
hex("e8e8e8")
),
wheel = ColorQuintet(
hex("e28e93"),
hex("ef9725"),
hex("ffc66d"),
hex("7fb971"),
hex("4dbed4")
)
)
.site
.topNavigationBar(
homeLink = ImageLink.internal(
Root / "README.md",
Image.internal(
Root / "img" / "tyrian-horizontal.svg",
alt = Some("Homepage"),
title = Some("Tyrian"),
width = Some(Length(150.0, LengthUnit.px)),
height = Some(Length(50.0, LengthUnit.px))
)
),
navLinks = Seq(
ButtonLink.external("https://discord.gg/b5CD47g", "Discord"),
ButtonLink.external("/api", "API"),
ButtonLink.external(
"https://github.com/PurpleKingdomGames/tyrian",
"Github"
)
)
)
.site
.tableOfContent(title = "Contents", depth = 2)
.site
.autoLinkCSS(Root / "css" / "custom.css")
.site.favIcons(
Favicon.internal(Root / "img" / "favicon.png", sizes = "32x32")
)
.build

// Helium.defaults

laikaPreviewConfig :=
LaikaPreviewConfig.defaults
.withPort(port"8080")

// Make site

siteSourceDirectory := target.value / "docs" / "site"
makeSite / includeFilter := "*"
makeSite / excludeFilter := ".DS_Store"
git.remoteRepo := "git@github.com:PurpleKingdomGames/tyrian.git"
ghpagesNoJekyll := true

addCommandAlias(
"publishTyrianSite",
Expand Down
10 changes: 7 additions & 3 deletions website/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ PROJECT_DIR=$WEBSITE_DIR/..

# -----
# generate / check docs
# - Docs in ./tyrian-docs/target/mdoc
# - Docs in ./target/unidocs/site-docs
cd $PROJECT_DIR
sbt gendocs
cd $WEBSITE_DIR

# -----
# build the site
hugo --cleanDestinationDir
# build the site // $WEBSITE_DIR/target/docs/site
sbt clean laikaSite

# -----
# Publish
sbt clean makeSite ghpagesPushSite
mkdir -p target/docs/site/api/
cp -R $PROJECT_DIR/target/unidocs/site-docs/api/. $WEBSITE_DIR/target/docs/site/api/
sbt makeSite ghpagesPushSite
82 changes: 0 additions & 82 deletions website/config.toml

This file was deleted.

1 change: 0 additions & 1 deletion website/content/_index.md

This file was deleted.

13 changes: 0 additions & 13 deletions website/content/basics/_index.md

This file was deleted.

6 changes: 0 additions & 6 deletions website/content/basics/first-content.md

This file was deleted.

6 changes: 0 additions & 6 deletions website/content/basics/second-content/_index.md

This file was deleted.

Empty file removed website/data/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion website/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.0
sbt.version=1.9.2
1 change: 1 addition & 0 deletions website/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("org.planet42" % "laika-sbt" % "0.19.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3")
Empty file removed website/resources/.gitkeep
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion website/static/CNAME

This file was deleted.

Empty file removed website/static/tyrian.html
Empty file.
16 changes: 0 additions & 16 deletions website/themes/hugo-theme-learn/.editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions website/themes/hugo-theme-learn/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions website/themes/hugo-theme-learn/.grenrc.yml

This file was deleted.

Loading

0 comments on commit 060bd45

Please sign in to comment.