Documentation Generators

YARD – documentation generator for Ruby projects

YARD is a documentation generation tool for Ruby applications and libraries. It produces structured API references while offering a flexible annotation system for describing the behaviour of Ruby classes, methods and other program elements.

Ruby’s dynamic features can make automatically identifying interfaces difficult. YARD addresses this through a combination of source-code analysis, documentation comments and extension mechanisms. Developers can describe generated methods, custom class-level constructs and domain-specific language features that may not be apparent from ordinary Ruby declarations.

The software can be used to document individual applications or extensive collections of Ruby libraries. Its structured representation of documented objects also makes it suitable for tools that need to analyse API information programmatically. YARD provides a local documentation server, allowing developers to inspect documentation while working on a project.

This is free and open source software.

Key Features

  • Generates HTML API documentation for Ruby classes, modules, constants, attributes and methods.
  • Structured documentation tags describe parameters, return types, exceptions, examples and deprecation notices.
  • Supports Ruby Signature (.rbs) files, including documentation comments.
  • Built-in hybrid renderer handles RDoc and Markdown formatting.
  • Extensible handlers recognise custom Ruby constructs and domain-specific language declarations.
  • Customisable templates control the layout and presentation of generated documentation.
  • Local documentation server provides searchable documentation for projects and installed gems.
  • Live reloading helps developers preview changes to documentation.
  • Organises methods into groups and preserves metadata associated with documented objects.
  • Supports documentation coverage analysis and related quality checks through extensions.
  • Provides serialised documentation data for reuse by other tools.

Website: github.com/lsegal/yard
Support:
Developer: Loren Segal and contributors
License: MIT License

YARD is written in Ruby. Learn Ruby with our recommended free books and free tutorials.


Related Software

Documentation Generators
JSDocAPI documentation generator for JavaScript
JavadocGenerate API documentation in HTML format
SphinxCreate intelligent and beautiful documentation for Python projects
phpDocumentorComplete documentation solution for PHP
DoxygenDocumentation system for C, C++, Java, Python and other languages
DocusaurusBuild, deploy and maintain documentation websites
mdBookCreate modern online books from Markdown files
YARDRuby documentation tool
StarlightDocumentation website framework
DoccoLiterate-programming-style documentation generator
Natural DocsDocumentation generator that supports 21 different languages
QuartoScientific and technical publishing system
AntoraModular documentation site generator
CryccoQuick and dirty documentation generator
ROBODocDocumentation tool similar to Javadoc

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted