44//> using dep org.graalvm.js:js:25.0.2
55//> using dep org.webjars.npm:katex:0.16.44
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-bbb1740 -SNAPSHOT
88//> using repository https://central.sonatype.com/repository/maven-snapshots
99//> using option -deprecation
1010
@@ -77,9 +77,12 @@ 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 =
84+ IndexConfig .withExcludedPaths(Path .Root / " 404.md" )
85+
8386 def input = {
8487 val securityPolicy = new URI (
8588 " https://raw.githubusercontent.com/typelevel/.github/refs/heads/main/SECURITY.md"
@@ -128,7 +131,7 @@ object LaikaBuild {
128131 .build
129132
130133 val binaryRenderers = List (
131- IndexRendererConfig ( true ) ,
134+ indexConfig.config ,
132135 BinaryRendererConfig (
133136 " rss" ,
134137 LaikaCustomizations .Rss ,
@@ -154,7 +157,7 @@ object LaikaBuild {
154157 .parallel[IO ]
155158 .build
156159 val index =
157- Renderer .of(IndexFormat ).withConfig(parser.config).parallel[IO ].build
160+ Renderer .of(indexConfig.format ).withConfig(parser.config).parallel[IO ].build
158161
159162 (html, rss, index).tupled.use { (html, rss, index) =>
160163 parser.fromInput(input).parse.flatMap { tree =>
0 commit comments