Project

yard-api

0.02
No release in over 3 years
Low commit activity in last 3 years
TBD
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.3

Runtime

~> 0.9.15
 Project Readme

yard-api

Build Status

Usage

See [https://amireh.github.io/yard-api].

Compatibility options

@argument tags with names specified before types

For tags that have a type and a name such as the YARD @attr tag, or the yard-api @argument tag, the "correct" syntax is to specify the types before the name. For example:

# @argument [String] name
#   This is compliant with YARD syntax.
#
# @argument name [String]
#   This is not compliant with YARD syntax.

If your project already uses the (incorrect) second syntax and you would like to keep things that way, then you can use the compatibility option leading_argument_name_fix to have yard-api correctify this and understand both flavors.

Configuration

yard-api will look for a file in config/yard_api.yml in the Rails root for customizations. Configuration fields not specified in that file will be filled with the default values found in config/yard_api.yml.

Read that file to view all the available options.

Notes

  • can only document classes and class methods; modules, root objects, and constants are ignored

Generating the docs for YARD-API

  1. go to the gh-pages branch, check it out if you haven't
  2. run bin/generate-docs
  3. browse index.html

Changelog

See CHANGES.md.

License

Released under the AGPLv3 license.