Skip to content

Commit dc050ad

Browse files
authored
Merge pull request #308 from s22s/feature/searchable-docs
New, modern documentation theme with built-in search
2 parents 8df0c97 + 2016a8a commit dc050ad

File tree

13 files changed

+121
-186
lines changed

13 files changed

+121
-186
lines changed

build.sbt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,28 @@ lazy val experimental = project
129129

130130
lazy val docs = project
131131
.dependsOn(core, datasource, pyrasterframes)
132-
.enablePlugins(SiteScaladocPlugin, ParadoxPlugin, GhpagesPlugin, ScalaUnidocPlugin)
132+
.enablePlugins(SiteScaladocPlugin, ParadoxPlugin, ParadoxMaterialThemePlugin, GhpagesPlugin, ScalaUnidocPlugin)
133133
.settings(
134134
apiURL := Some(url("http://rasterframes.io/latest/api")),
135135
autoAPIMappings := true,
136136
ghpagesNoJekyll := true,
137137
ScalaUnidoc / siteSubdirName := "latest/api",
138138
paradox / siteSubdirName := ".",
139139
paradoxProperties ++= Map(
140-
"github.base_url" -> "https://github.com/locationtech/rasterframes",
141140
"version" -> version.value,
142-
"scaladoc.org.apache.spark.sql.rf" -> "http://rasterframes.io/latest"
141+
"scaladoc.org.apache.spark.sql.rf" -> "http://rasterframes.io/latest",
142+
"github.base_url" -> ""
143143
),
144144
paradoxNavigationExpandDepth := Some(3),
145-
paradoxTheme := Some(builtinParadoxTheme("generic")),
145+
Compile / paradoxMaterialTheme ~= { _
146+
.withRepository(uri("https://github.com/locationtech/rasterframes"))
147+
.withCustomStylesheet("assets/custom.css")
148+
.withCopyright("""&copy; 2017-2019 <a href="https://astraea.earth">Astraea</a>, Inc. All rights reserved.""")
149+
.withLogo("assets/images/RF-R.svg")
150+
.withFavicon("assets/images/RasterFrames_32x32.ico")
151+
.withColor("blue-grey", "light-blue")
152+
.withGoogleAnalytics("UA-106630615-1")
153+
},
146154
makeSite := makeSite
147155
.dependsOn(Compile / unidoc)
148156
.dependsOn((Compile / paradox)
@@ -157,6 +165,8 @@ lazy val docs = project
157165
addMappingsToSiteDir(Compile / paradox / mappings, paradox / siteSubdirName)
158166
)
159167

168+
//ParadoxMaterialThemePlugin.paradoxMaterialThemeSettings(Paradox)
169+
160170
lazy val bench = project
161171
.dependsOn(core % "compile->test")
162172
.settings(publish / skip := true)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.md-left { float: left; }
2+
.md-right { float: right; }
3+
.md-clear { clear: both; }
4+
table { font-size: 80%; }
5+
code { font-size: 0.75em !important; }
6+
table a {
7+
word-break: break-all;
8+
}
9+
.md-source-file.md-edit {
10+
visibility: hidden;
11+
}
Lines changed: 91 additions & 0 deletions
Loading
-46.8 KB
Binary file not shown.

docs/src/main/paradox/_template/page.st

Lines changed: 0 additions & 163 deletions
This file was deleted.

docs/src/main/paradox/_template/partials/poweredby.st

Whitespace-only changes.

0 commit comments

Comments
 (0)