44//> using dep org.graalvm.js:js:25.1.3
55//> using dep org.webjars.npm:katex:0.17.0
66//> using dep org.webjars.npm:fortawesome__fontawesome-free:7.2.0
7- //> using dep pink.cozydev::protosearch-laika:0.0-7f79720 -SNAPSHOT
7+ //> using dep pink.cozydev::protosearch-laika:0.0-0aa7335 -SNAPSHOT
88//> using repository https://central.sonatype.com/repository/maven-snapshots
99//> using option -deprecation
1010
@@ -77,9 +77,11 @@ object LaikaBuild {
7777 import laika .io .syntax .*
7878 import laika .parse .code .languages .ScalaSyntax
7979 import laika .theme .*
80- import pink .cozydev .protosearch .analysis .{ IndexFormat , IndexRendererConfig }
80+ import pink .cozydev .protosearch .laika . IndexConfig
8181 import pink .cozydev .protosearch .ui .SearchUI
8282
83+ val indexConfig = IndexConfig .default
84+
8385 def input = {
8486 val securityPolicy = new URI (
8587 " https://raw.githubusercontent.com/typelevel/.github/refs/heads/main/SECURITY.md"
@@ -128,7 +130,7 @@ object LaikaBuild {
128130 .build
129131
130132 val binaryRenderers = List (
131- IndexRendererConfig ( true ) ,
133+ indexConfig.config ,
132134 BinaryRendererConfig (
133135 " rss" ,
134136 LaikaCustomizations .Rss ,
@@ -154,7 +156,11 @@ object LaikaBuild {
154156 .parallel[IO ]
155157 .build
156158 val index =
157- Renderer .of(IndexFormat ).withConfig(parser.config).parallel[IO ].build
159+ Renderer
160+ .of(indexConfig.format)
161+ .withConfig(parser.config)
162+ .parallel[IO ]
163+ .build
158164
159165 (html, rss, index).tupled.use { (html, rss, index) =>
160166 parser.fromInput(input).parse.flatMap { tree =>
0 commit comments