talira

Ruby's documentation generator, with the rdoc and ri command-line tools

open sourceRuby OR GPL-2.0-onlyfree

RDoc is the documentation system for Ruby projects, maintained under the Ruby organization on GitHub. Its rdoc command generates HTML documentation from comments in Ruby and C source files, RBS signature files and Markdown or RDoc markup pages, and its ri command displays documentation in the terminal. It can also be run from Rake with RDoc::Task or programmatically. Markdown support is being improved to replace RDoc markup as the default format.

Problems it solves

  • generate HTML API documentation for my Ruby gem from its code comments
  • look up a Ruby method's documentation from the terminal without a browser
  • publish documentation for a Ruby project that includes its RBS type signatures

Features

  • generate HTML documentation from comments in Ruby and C source files
  • read RBS signature files, adding their comments and type signatures to the docs
  • Markdown and RDoc markup for comments and pages
  • ri: browse documentation from the command line
  • Rake task (RDoc::Task) and a Ruby API for generating docs

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what RDoc does.

  1. YARD A Ruby documentation tool
  2. JSDoc API documentation generator for JavaScript from comments in the code
  3. Doxygen Code documentation. Automated. Free, open source, cross-platform.
  4. Dokka API documentation engine for Kotlin
  5. DocFX Static site generator for .NET API documentation

Compare RDoc with the top 3