Scaladoc vs TypeDoc
Scaladoc
docs.scala-lang.orgTypeDoc
typedoc.orgSide by side
| Figure | Scaladoc | TypeDoc |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | Yes |
| API | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 1 |
| Spec score · Documentation Generators | 7.6 (#19) | 8.0 (#10) |
| Integrations | The Scala documentation names sbt as the easiest and most commonly used way to generate Scaladoc from Scala code. | The GitHub Pages option generates a .nojekyll file, and source links can use GitHub or Bitbucket remotes. |
| Purpose | Scaladoc is Scala’s main documentation tool and generates documentation related to the structure of Scala source code from comments in that code. | TypeDoc converts comments in TypeScript source code into HTML documentation or a JSON model. |
| Security | The Scala security policy says releases are cryptographically signed with PGP keys and encourages private vulnerability reports. | The GitHub repository links to a security policy, but the opened repository page does not state specific security certifications or compliance claims. |
Plans
In their own words
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.
TypeDoc
TypeDoc is a free TypeScript documentation generator that turns source comments into HTML pages or a JSON model. It builds from project exports and follows re-exports, allowing members declared elsewhere to appear in documentation. TSDoc and JSDoc tags are extracted, Markdown is accepted in comments, and fenced code blocks receive Shiki syntax highlighting. HTML and JSON are built in; Markdown output needs a plugin such as typedoc-plugin-markdown. A default theme is included, while plugins can add themes, alter conversion and symbol organization, or change display. Custom CSS and JavaScript can further adjust generated pages. Configuration can come from an options file, package.json, or tsconfig.json. TypeDoc runs on Node.js, uses the TypeScript compiler, and supports the current Node.js LTS or newer. For npm monorepos, the packages entry-point strategy can combine package documentation into one site. The project is Apache-2.0 licensed. Documentation warns that global installation can separate plugins and themes from the intended TypeDoc installation.