-
Notifications
You must be signed in to change notification settings - Fork 0
yardoc
E. Lynette Rayle edited this page Apr 9, 2022
·
3 revisions
Reference:
$ gem install yard
$ gem install redcarpet
NOTE: Install of redcarpet may not be required. Yard now comes with several parsers preinstalled.
Run for all files
$ bundle exec yard doc
$ bundle exec yard doc -m markdown
NOTE: -m markdown generates docs using GitHub style markdown. The default is RDoc.
Run for directory
$ bundle exec yard doc app
$ bundle exec yard doc -m markdown app
Run for a file
$ bundle exec yard doc app/models/my_model.rb
$ bundle exec yard doc -m markdown app/models/my_model.rb
@see Class::Name
@see Class::Name#method_name
@see https://a.link/ text to display