1. shomen-yard(1)
  2. shomen-yard(1)

NAME

shomen-yard - generate shomen documentation via yard

SYNOPSIS

shomen-yard [<options>...] [scripts...] - [documents...]

DESCRIPTION

The shomen-yard tool is a stand-alone command line tool that can generate Shomen-formatted documentation from a YARD documentation cache (e.g. .yardoc).

INSTALLATION

The shomen-yard tool can be installed the via RubyGems.

$ gem install shomen-yard

INSTRUCTION

Using shomen-yard tool is similar to using the yard command line tool to generate a .yardoc cache. Usage will look something likes this:

$ shomen-yard -r README.rdoc -t "My Docs" lib - [A-Z]*.*

However, it is more helpful to make sure you project has a .yardopts configuration file. This allows shomen-yard to work with minimal need of command-line options. With such in place the command can be simplified:

$ shomen-yard

The .yardoc cache can be pre-generated using YARD.

$ yard -n -b .yardoc lib

Note, -b .yardoc is the default, so it can be left out. Then Shomen can use the cache without regenerating it via the -c option.

$ shomen-yard -c 

If the cache is stored elsewhere then the standard .yardoc location, inform shomen-yard of the location using the -d option.

$ shomen-yard -c -d .yardalt

In all these examples the output has been going to $stdout. To use the output we want to save it to a file. Simply redirect the output to the file.

$ shomen-yard > doc.json

It is a good idea to version your documentation.

$ shomen-yard > doc/myapp-1.0.0.json

Though JSON tends to be the format used by viewers, it can also output YAML.

$ shomen-yard -y > doc/myapp-1.0.0.yaml

OPTIONS

EXAMPLES

shomen-yard
shome-yard -r README.md -t "MyApp Docs" lib - [A-Z]*.*

RESOURCES

SEE ALSO

shomen-rdoc(1)

  1. April 2012
  2. shomen-yard(1)