mdBook vs Scaladoc
mdBook
rust-lang.github.ioScaladoc
docs.scala-lang.orgSide by side
| Figure | mdBook | Scaladoc |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Documentation Generators | 7.8 (#12) | 7.6 (#19) |
| Audience | The project describes mdBook as ideal for product or API documentation, tutorials, and course materials. | Scaladoc documentation helps library users learn about a library, library authors write documentation, and developers generate library documentation. |
| Integrations | The documentation describes using GitHub Actions or GitLab CI/CD to test and deploy books automatically. | The Scala documentation names sbt as the easiest and most commonly used way to generate Scaladoc from Scala code. |
| Purpose | mdBook is a command-line tool for creating books from Markdown, including product or API documentation, tutorials, and course materials. | Scaladoc is Scala’s main documentation tool and generates documentation related to the structure of Scala source code from comments in that code. |
| Search | mdBook includes integrated search support. | Scaladoc supports searching for methods and fields by their types, and the documentation describes this feature as still in development. |
| Security | The repository links to a security policy. | The Scala security policy says releases are cryptographically signed with PGP keys and encourages private vulnerability reports. |
Plans
In their own words
mdBook
mdBook is a free command-line tool for creating books from Markdown, including product and API documentation, tutorials, and course materials. It builds static output files in a book directory that can be transferred to a web service. Integrated search and syntax highlighting for code blocks help readers navigate and read examples, while theme files allow formatting changes. Preprocessors can add custom syntax or modify content; backends can render output to multiple formats. The `mdbook test` command tests Rust code samples in a book. Project documentation describes using GitHub Actions or GitLab CI/CD to test and deploy books automatically. Developers can also import mdBook libraries or use its plugin mechanism to build custom tooling and output backends. It runs on Linux, macOS, and Windows, and Markdown is its source input. Building from source requires Rust and Cargo, with Rust 1.88 as the stated minimum. The project directs issues and feature requests to its GitHub issue tracker and relies on community contributions for bug fixes and added features. The free, open-source plan is licensed under MPL-2.0.
Scaladoc
Scaladoc is Scala’s documentation tool for generating material about the structure of Scala source code from comments in that code. Library authors can document code for library users and other developers who need API references. Comments support Markdown in Scala 3 and legacy Wikidoc syntax, with tags for parameters, type parameters, return values, exceptions, examples, versions and deprecation. Comments can be inherited from superclasses and traits, either implicitly or using an explicit tag. Scaladoc generates HTML through sbt or its command-line tool; sbt is described as the easier route for complex projects. Generated pages can show package breadcrumbs, linear supertypes, known subclasses, type hierarchies and links to online source when available. The tool can also create static sites for documentation and blog posts. Searching for methods and fields by type is supported, though that feature is still in development. Inputs include Scala source code, TASTy files and JAR files. Scaladoc is free and open source, with no paid plans or usage limits stated.