Skip to content
E. Lynette Rayle edited this page Mar 2, 2022 · 3 revisions

Reference:

Install

$ gem install yard
$ gem install redcarpet

NOTE: Install of redcarpet may not be required. Yard now comes with several parsers preinstalled.

To run...

Run for all files

$ yard doc
$ yard doc -m markdown

NOTE: -m markdown generates docs using GitHub style markdown. The default is RDoc.

Run for directory

$ yard doc app
$ yard doc -m markdown app

Run for a file

$ yard doc app/models/my_model.rb
$ yard doc -m markdown app/models/my_model.rb

@see examples

@see Class::Name
@see Class::Name#method_name
@see https://a.link/ text to display