
mdoc
Markdown documentation tool for Scala that compiles and evaluates the Scala code blocks in markdown sources.
scalameta.org/mdoc/repositorydocs
mdoc is a markdown documentation tool for Scala. It reads markdown sources, compiles and evaluates the Scala code blocks in them, and writes markdown in which each block shows its result, so the examples in the documentation are type-checked. It runs as the sbt-mdoc plugin in an sbt build, where the docs/mdoc task generates the documentation, from the command line through coursier, or as a library API. The project is maintained by the mdoc developers. A migration guide covers moving documentation over from tut.
Worth knowing
mdoc writes markdown. Its DocusaurusPlugin builds a static site from that markdown with Docusaurus, which needs node and yarn. The JDK requirement differs between releases, as the README’s compatibility table shows.
Identity
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-23: links, Maintainer
scalameta.org/mdoc/ - 2026-10-23: links, License, GitHub stars, Written in
api.github.com/repos/scalameta/mdoc - 2026-10-23: links, Install with, Runs as
scalameta.org/mdoc/docs/installation.html - 2026-10-23: Categories, Runtime, Minimum runtime
github.com/scalameta/mdoc/blob/main/readme.md - 2026-10-23: License, License model
github.com/scalameta/mdoc/blob/main/LICENCE.md - 2026-10-23: Current major version, Last release
api.github.com/repos/scalameta/mdoc/releases/latest - 2026-10-23: First release
api.github.com/repos/scalameta/mdoc/releases?per_page=100 - 2026-10-23: Contributors
api.github.com/repos/scalameta/mdoc/contributors?per_page=1