FindSoftware

mdoc

Markdown documentation tool for Scala that compiles and evaluates the Scala code blocks in markdown sources.

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

Status
Active
Maintainer
mdoc developers1
Maintained by
Community
First release
20187

Rendering and deploy

Runs as
Dev only3
Install with
sbt plugin sbt-mdoc3

Releases

Current major version
26
Last release
2026-09-036

Adoption

GitHub stars
4022
Contributors
528

Why these figures do not compare

Sources

  1. 2026-10-23: links, Maintainer
    scalameta.org/mdoc/
  2. 2026-10-23: links, License, GitHub stars, Written in
    api.github.com/repos/scalameta/mdoc
  3. 2026-10-23: links, Install with, Runs as
    scalameta.org/mdoc/docs/installation.html
  4. 2026-10-23: Categories, Runtime, Minimum runtime
    github.com/scalameta/mdoc/blob/main/readme.md
  5. 2026-10-23: License, License model
    github.com/scalameta/mdoc/blob/main/LICENCE.md
  6. 2026-10-23: Current major version, Last release
    api.github.com/repos/scalameta/mdoc/releases/latest
  7. 2026-10-23: First release
    api.github.com/repos/scalameta/mdoc/releases?per_page=100
  8. 2026-10-23: Contributors
    api.github.com/repos/scalameta/mdoc/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON