@olafurpg I'm trying to cross build documentation for multiple versions of a library dependency (http4s) so I'd like to do something like this
```scala mdoc:http4s import org.http4s.Uri val uri = Uri(path = "/my-path") // v0.21 val uri = Uri(path = Uri.Path.unsafeFromString("/my-path")) // v1.0.0-M20 ```
and then have the
http4s modifier parse the code and only keep the lines with a comment specifying the current version that I'm building for
io-silentwhich combines the behaviours, which is not ideal
Hi, we have some strange behaviour during "unidoc", it's unrelated to
mdoc I suppose, but I have no idea where to ask.
We have strange behaviour during our docs construction, seems like during compilation some old version of dependencies, such as cats, and cats-effect are used.
For instance, during doc generation for this file
type mismatch; [error] found : I[cats.effect.concurrent.MVar[F,A]] [error] required: I[cats.effect.concurrent.MVar2[F,A]]
sbt/sbtchannel might be better to ask
docsfolder, but as I see Docusaurus handle only static assets in
website/static. Is there some common way to work with images?
website/staticwhich have to be added to
.gitignore. I just asking if there something better than this, or some built-in code for it.
I was trying to explore mdoc in a sample project following the documentation. I have added the plugin in
plugins.sbt and created two projects in
build.sbt where docuemntation project depends on my root project as given in the documentation. However, when I run
docs/mdoc I get error for dependency resolution as mdoc is looking for
2.12 version of the project but I am using
addSbtPlugin("org.scalameta" %% "sbt-mdoc" % "2.2.21")
lazy val `sample-project` = project .in(file(".")) .settings( name := "sample-project", version := "0.1", scalaVersion := "2.13.3" ) lazy val docs = project // new documentation project .in(file("myproject-docs")) // important: it must not be docs/ .settings( mdocVariables := Map("VERSION" -> version.value, "SCALA_VERSION" -> "2.13.3") ) .dependsOn(`sample-project`) .enablePlugins(MdocPlugin)
What am I missing?
scalaVersionto 2.13.13 on the docs project as well