yard-api
TODO
Usage
TODO
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
Changelog
15/9/2014
@argumenttags can now be formatted in a table by setting thetabular_argumentsoption to true@argument_scope: a new tag that improves the formatting of endpoint arguments that are scoped by a common prefix (e.g, nested inside a json object), likeuser[name]=>name@argumentcan now parse accepted values in two formats; inline within the types array, or by explicitly writing it in the tag text using any ofAccepted values: [...],Accepts: [...], orPossible values: [...]- A new option:
strict_argumentsthat provides a default for theis_requiredproperty of@argumenttags. This default is used if the tag does not explicitly stateOptionalorRequiredin its type specifier. - Support for dynamic javascript and style code based on options. See
templates/layout/setup.rb#inline_{javascripts,stylesheets} - A new set of options for customizing layout:
content_width,sidebar_widthandspacer github_urlandgithub_branchoptions for tuning api endpoint source links
14/9/2014
- Support for single-page output through the
one_fileoption - Support for resource index generation ("All Resources") through the
resource_indexoption
10/9/2014
- Support for github-flavored markdown when you're using Markdown as a markup, and
redcarpetas the provider - Syntax highlighting for multiple languages (with auto-detection) using highlight.js
@example_responseand@example_requesttags now support a title for the response- A new option:
copyrightfor displaying a copyright in the footer of every page - A new option:
footer_notefor displaying a custom note, like linking to the project's source code, in the footer of every page
License
Released under the AGPLv3 license.
