Natural Docs vs RDoc
Natural Docs
naturaldocs.orgRDoc
ruby.github.ioSide by side
| Figure | Natural Docs | RDoc |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | — |
| macOS | Yes | — |
| Linux | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 1 |
| Spec score · Documentation Generators | 7.7 (#15) | 8.1 (#8) |
| Purpose | Natural Docs is an open source documentation generator that scans code comments and creates HTML documentation. | RDoc produces HTML and command-line documentation for Ruby projects, with `rdoc` and `ri` tools to generate and display it. |
| Support | Help is available through the Reddit forum, email to the author, and GitHub issue tracker; businesses can contact the author about commercial support contracts. | The project directs users to CONTRIBUTING.md for filing bug reports. |
Plans
In their own words
Natural Docs
Natural Docs is a command-line documentation generator that scans source-code comments and text files to create HTML documentation, including API references. Its syntax is designed to read like ordinary English in both source code and generated pages. The project says it comes configured for 25 programming languages and can be extended; for certain languages, it can also read Javadoc and Microsoft XML comments without rewrites. Generated pages have three panels, dynamic navigation, search and summaries that appear when readers hover over links. They can be opened from a local hard drive without installed software, and styled with custom CSS and images. Natural Docs runs on Linux, macOS and Windows. It is free and open source under AGPL version 3. The license requires source availability for modified distributions, projects incorporating its source, and services incorporating its functionality; merely documenting a project does not place that project under AGPL. Help is available through a Reddit forum, email and GitHub issues, with commercial support contracts available to businesses.
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.