Skip to content
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

Remove two warnings and fix a typo #881

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/src/main/scala/mdoc/PreModifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object PreModifier {
ServiceLoader.load(classOf[PreModifier], classLoader).iterator().asScala.toList
implicit val surface: Surface[Settings] = new Surface(Nil)
implicit val decoder: ConfDecoder[PreModifier] =
ConfDecoder.instanceF[PreModifier](_ => ConfError.message("unsupported").notOk)
ConfDecoder.from[PreModifier](_ => ConfError.message("unsupported").notOk)
implicit val encoder: ConfEncoder[PreModifier] =
ConfEncoder.StringEncoder.contramap(mod => s"<${mod.name}>")
}
2 changes: 1 addition & 1 deletion cli/src/main/scala/mdoc/StringModifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object StringModifier {
ServiceLoader.load(classOf[StringModifier], classLoader).iterator().asScala.toList
implicit val surface: Surface[Settings] = new Surface(Nil)
implicit val decoder: ConfDecoder[StringModifier] =
ConfDecoder.instanceF[StringModifier](_ => ConfError.message("unsupported").notOk)
ConfDecoder.from[StringModifier](_ => ConfError.message("unsupported").notOk)
implicit val encoder: ConfEncoder[StringModifier] =
ConfEncoder.StringEncoder.contramap(mod => s"<${mod.name}>")
}
2 changes: 1 addition & 1 deletion docs/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ file in a different directory than the markdown source.
By default, sbt-mdoc uses the `scalaJSModuleKind` sbt setting to determine the
module kind.

Outside of sbt, update the `js-module-kind` site variables to customizee the
Outside of sbt, update the `js-module-kind` site variables to customize the
module kind:

- `js-module-kind=NoModule`: don't export modules, the default value.
Expand Down