1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
|
=encoding UTF-8
=head1 NAME
yardoc - Ruby tool to generate documentation for the Ruby programming language
=head1 SYNOPSIS
B<yarddoc> [I<options>] [I<source_files> [- I<extra_files>]]
B<yard doc> [I<options>] [I<source_files> [- I<extra_files>]]
=head1 DESCRIPTION
B<yard>(1) is an extensible documentation generation tool for the Ruby programming
language. It enables the user to generate consistent, usable documentation that
can be exported to a number of formats very easily, and also supports extending
for custom Ruby constructs such as custom class level definitions.
B<yardoc>, synonym for B<yard> B<doc> generates the documentation from the
list of I<source_files>. If this list is omitted,
C<{lib,app}/**/*.rb ext/**/*.c> is used.
A base set of options can be specified by adding a B<.yardopts>
file to your base path containing all extra options separated
by whitespace.
=head1 OPTIONS
=head2 General Options
=over
=item B<-b>, B<--db> I<FILE>
Use a specified .yardoc db to load from or save to (defaults to .yardoc)
=item B<-->[B<no->]B<single-db>
Whether code objects should be stored to single database file (advanced)
=item B<-n>, B<--no-output>
Only generate .yardoc database, no documentation.
=item B<-c>, B<--use-cache> [I<FILE>]
Use the cached .yardoc db to generate documentation (defaults to no cache)
=item B<--no-cache>
Clear .yardoc db before parsing source.
=item B<-->[B<no->]B<yardopts> [I<FILE>]
If arguments should be read from FILE (defaults to yes, FILE defaults to .yardopts)
=item B<-->[B<no->]B<document>
If arguments should be read from .document file (defaults to yes)
=item B<--no-save>
Do not save the parsed data to the yardoc db
=item B<--exclude> I<REGEXP>
Ignores a file if it matches path match (regexp)
=back
=head2 Output options
=over
=item B<--one-file>
Generates output as a single file
=item B<--list>
List objects to standard out (implies B<-n>)
=item B<--no-public>
Don't show public methods. (default shows public)
=item B<--protected>
Show protected methods. (default hides protected)
=item B<--private>
Show private methods. (default hides private)
=item B<--no-private>
Hide objects with @private tag
=item B<--[no-]api API>
Generates documentation for a given API (objects which define the correct @api tag).
If B<--no-api> is given, displays objects with no @api tag.
=item B<--embed-mixins>
Embeds mixin methods into class documentation
=item B<--embed-mixin [MODULE]>
Embeds mixin methods from a particular module into class documentation
=item B<--no-highlight>
Don't highlight code blocks in output.
=item B<--default-return TYPE>
Shown if method has no return type. (defaults to 'Object')
=item B<--hide-void-return>
Hides return types specified as 'void'. (default is shown)
=item B<--query QUERY>
Only show objects that match a specific query
=item B<--title TITLE>
Add a specific title to HTML documents
=item B<-r>, B<--readme>, B<--main> I<FILE>
The readme file used as the title page of documentation.
=item B<--files> I<FILE1>,I<FILE2>,...
Any extra comma separated static files to be included (eg. FAQ)
=item B<--asset> I<FROM>[:I<TO>]
A file or directory to copy over to output directory after generating
=item B<-o>, B<--output-dir> I<PATH>
The output directory. (defaults to ./doc)
=item B<-m>, B<--markup> B<MARKUP>
Markup style used in documentation, like textile, markdown or rdoc (defaults to rdoc).
=item B<-M> I<MARKUP_PROVIDER>
Overrides the library used to process markup
=item B<--markup-provider>
formatting (specify the gem name)
=item B<--charset> I<ENC>
Character set to use when parsing files (default is system locale)
=item B<-t>, B<--template> I<TEMPLATE>
The template to use. (defaults to "default")
=item B<-p>, B<--template-path> I<PATH>
The template path to look for templates in. (used with -t).
=item B<-f>, B<--format> I<FORMAT>
The output format for the template (defaults to html).
=item B<--no-stats>
Don't print statistics
=item B<--locale> I<LOCALE>
The locale for generated documentation (defaults to en).
=item B<--po-dir> I<DIR>
The directory that has .po files (defaults to #{YARD::Registry.po_dir}).
=back
=head2 Tag options:
(I<TAG>:I<TITLE> looks like: 'B<overload>:B<Overloaded Method>')
=over
=item B<--tag> I<TAG>:I<TITLE>
Registers a new free-form metadata @tag
=item B<--type-tag> I<TAG>:I<TITLE>
Tag with an optional types field
=item B<--type-name-tag> I<TAG>:I<TITLE>
Tag with optional types and a name field
=item B<--name-tag> I<TAG>:I<TITLE>
Tag with a name field
=item B<--title-tag> I<TAG>:I<TITLE>
Tag with first line as title field
=item B<--hide-tag> I<TAG>
Hides a previously defined tag from templates
=item B<--transitive-tag> I<TAG>
Marks a tag as transitive
=item B<--non-transitive-tag> I<TAG>
Marks a tag as not transitive
=back
=head2 Other options:
=over
=item B<-e>, B<--load> I<FILE>
A Ruby script to load before running command.
=item B<--plugin> I<PLUGIN>
Load a YARD plugin (gem with `yard-' prefix)
=item B<--legacy>
Use old style Ruby parser and handlers. Always on in 1.8.x.
=item B<--safe>
Enable safe mode for this instance
=item B<-q>, B<--quiet>
Show no warnings.
=item B<--verbose>
Show more information.
=item B<--debug>
Show debugging information.
=item B<--backtrace>
Show stack traces
=item B<-v>, B<--version>
Show version.
=item B<-h>, B<--help>
Show this help.
=back
=head1 EXAMPLES
B<yardoc> B<-o> C<documentation/> - C<FAQ> C<LICENSE>
The above example outputs documentation for files in
C<lib/**/*.rb> to C<documentation/> including the extra files
C<FAQ> and C<LICENSE>.
=head1 SEE ALSO
B<yard>(1).
=head1 AUTHORS
B<yard> has been developed by Loren Segal <lsegal@soen.ca>.
This manual page has been written for the Debian Project by Cédric Boutillier (but
may used by others).
|