-
Notifications
You must be signed in to change notification settings - Fork 344
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
Join algolia's DocSearch program #962
Comments
@keynmol Sounds awesome. |
I would use this often. currently I |
I'm making good progress - apparently just stealing the code from scala-lang allows me to see some search results while I work on the rendering. @eed3si9n is there a way to make |
@keynmol If you care only about front pages you can turn off Pamflet as follows: diff --git a/build.sbt b/build.sbt
index dd921bd5..8ad5c0f5 100644
--- a/build.sbt
+++ b/build.sbt
@@ -9,8 +9,9 @@ ThisBuild / scalafmtOnCompile := true
lazy val root = (project in file("."))
.enablePlugins(
- (if (!isBetaBranch) Seq(ParadoxSitePlugin) else Seq()) ++
- Seq(LowTechSnippetPamfletPlugin, ScriptedPlugin): _*
+ ParadoxSitePlugin, ScriptedPlugin
+ // (if (!isBetaBranch) Seq(ParadoxSitePlugin) else Seq()) ++
+ // Seq(LowTechSnippetPamfletPlugin, ScriptedPlugin): _*
)
.settings(
name := "website",
@@ -44,10 +45,10 @@ lazy val root = (project in file("."))
SiteHelpers.addMappingsToSiteDir(mappings in RedirectTutorial, tutorialSubDirName),
// GitHub Pages. See project/Docs.scala
customGhPagesSettings,
- mappings in Pamflet := {
- val xs = (mappings in Pamflet).value
- Pdf.cleanupCombinedPages(xs) ++ xs
- },
+ // mappings in Pamflet := {
+ // val xs = (mappings in Pamflet).value
+ // Pdf.cleanupCombinedPages(xs) ++ xs
+ // },
if (scala.sys.BooleanProp.keyExists("sbt.website.generate_pdf"))
Def settings (
// NOTE - PDF settings must be done externally like this because pdf generation generically looks |
@eed3si9n this worked for landing pages but once I realised that layout is completely different in the docs I had to revert that. I've added a provisional PR with Algolia's default theme, and I hope we can iterate from there |
I think SBT's docs are great but underappreciated - a search bar with instant response can go a long way in helping that.
I know that scala-lang.org is using https://docsearch.algolia.com/ (a free search program for significant open source projects). The PR to add it in is small: https://github.com/scala/docs.scala-lang/pull/1096/files
Creating this issue just to track, there are some actions:
How does this sound?
The text was updated successfully, but these errors were encountered: