A Ruby documentation tool
open sourceMITfree
YARD generates API documentation for Ruby code from its comments and tags (@param, @return and the rest), and can export it in several formats. Its documentation server shows what YARD sees as you write, and can serve docs for your installed gems. Templates are easy to change, metadata can be stored beside the docs, and extensions teach it your framework's DSLs (RSpec, Sinatra and others) or add checks such as documentation coverage.
Ways to install
Package managers
Problems it solves
- generate API docs for my Ruby gem from code comments
- see how my Ruby documentation will look while I write it
- check how much of my Ruby code is documented
Features
- tag-based Ruby API docs from comments
- live documentation server (yard server --reload)
- customisable templates and stored metadata
- extensions for framework DSLs
- serves docs for installed gems
- documentation coverage stats
Alternatives
The same job
These do what YARD does.
- RDoc Ruby's documentation generator, with the rdoc and ri command-line tools
- JSDoc API documentation generator for JavaScript from comments in the code
- Doxygen Code documentation. Automated. Free, open source, cross-platform.
- DocFX Static site generator for .NET API documentation
- Dokka API documentation engine for Kotlin
