def index
p {
text "Welcome. You've reached the central repository for "
strong "cheat"
text ", the RubyGem which puts Ruby-centric cheat sheets right into your
terminal. The inaugural blog entry "
a "is here", :href => "http://errtheblog.com/post/23"
text "."
}
p "Get started:"
code "$ gem install cheat"
br
code "$ cheat strftime"
p "A magnificent cheat sheet for Ruby's strftime method will be printed to
your terminal."
p "To get some help on cheat itself:"
code "$ cheat cheat"
p "How meta."
p {
text "Cheat sheets are basically wiki pages accessible from the command
line. You can "
a 'browse', :href => R(Browse)
text ', '
a 'add', :href => R(Add)
text ', or '
a 'edit', :href => R(Edit, 'cheat')
text ' cheat sheets. Try to keep them concise. For a style guide, check
out the '
a 'cheat', :href => R(Edit, 'cheat')
text ' cheat sheet.'
}
p "To access a cheat sheet, simply pass the program the desired sheet's
name:"
code "$ cheat <sheet name>"
p
end