Skip to content
SPECIFICTION
Get listed

RDoc vs TypeDoc

RDoc

ruby.github.io

TypeDoc

typedoc.org

Side by side

FigureRDocTypeDoc
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published11
Spec score · Documentation Generators8.1 (#8)8.0 (#10)
LicenseRDoc is free software and may be redistributed under the terms in its license file.The TypeDoc repository identifies its license as Apache-2.0.
PurposeRDoc produces HTML and command-line documentation for Ruby projects, with `rdoc` and `ri` tools to generate and display it.TypeDoc converts comments in TypeScript source code into HTML documentation or a JSON model.
SupportThe project directs users to CONTRIBUTING.md for filing bug reports.The project README invites users to open an issue or pull request on GitHub and points contributors to its contribution guide.

Plans

RDoc

  • RDocFree

RDoc pricing →

TypeDoc

  • Free and open sourceFree

TypeDoc pricing →

In their own words

RDoc

RDoc is free software for producing Ruby project documentation as HTML pages and command-line reference output. The `rdoc` command generates documentation, while `ri` displays it. It processes Ruby, C, and RBS source files, plus RDoc markup, Markdown, RD, and TomDoc documents. RBS declarations can describe classes, modules, methods, attributes, and constants, and can add comments or type signatures to matching Ruby source documentation. A local preview server watches source files and refreshes the browser after changes. It uses Ruby’s built-in TCPServer and needs no external gems, but provides neither HTTPS nor HTTP/2 and is intended only for local previews. RDoc reports documentation coverage with `rdoc -C`, or includes parameter names with `rdoc -C1`. Generation can be automated through Rake or the RDoc API. Aliki is the default theme; Darkfish is deprecated. Ruby 3.2.0 or newer is required for the current gem.

Visit ruby.github.io

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.

Visit typedoc.org