typelevel/fs2

`microsite / tlSitePreview` does not show the static website correctly

Hombre-x opened this issue · 2 comments

When running the SBT command microsite / tlSitePreview on the root project folder, the generated site does not show the contents properly, although microsite / tlSite works as usual.

A screenshot of the site after running the command:
Screenshot 2024-05-14 110701

As @TonioGela pointed out, looks like it is not placing the correct files in the intended folder.

Note that FS2 doesn't actually use Laika. But I wanted to use the existing sbt-typelevel-site plugin for publishing / CI infrastructure so I just kind of hacked it.

fs2/build.sbt

Lines 489 to 492 in 9b1b27c

laikaSite := {
sbt.IO.copyDirectory(mdocOut.value, (laikaSite / target).value)
Set.empty
},

That's why tlSitePreview is broken.

Asking since I'mcurious: are we considering using laika for the fs2 doc site too?