Rocco is Docco in Ruby
Go to file
Mike West b9b69d98fb Fixing (among other things) alternate header syntax
The following works in Docco, but not in Rocco:

    Level 1 Heading
    ===============

    Level 2 Heading
    ---------------

Happily, the fix is trivial.  In Docco, the regex for comments is:

    # Does the line begin with a comment?
    l.comment_matcher = new RegExp('^\\s*' + l.symbol + '\\s?')

Changing Rocco's comment pattern to:

    @comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars]}\s?")

Solves the problem for me.
2010-10-14 18:57:35 +02:00
bin Really support extension-less files (and still support -o) 2010-04-03 08:14:44 +08:00
lib Fixing (among other things) alternate header syntax 2010-10-14 18:57:35 +02:00
COPYING gem building machinery 2010-03-08 17:45:52 -08:00
Rakefile holla 2010-03-11 06:30:02 -08:00
README ascii art is a requirement 2010-03-10 12:33:25 -08:00
rocco.gemspec 0.5 release 2010-09-10 10:32:31 -07:00


                  ___       ___       ___       ___       ___
                 /\  \     /\  \     /\  \     /\  \     /\  \
                /::\  \   /::\  \   /::\  \   /::\  \   /::\  \
               /::\:\__\ /:/\:\__\ /:/\:\__\ /:/\:\__\ /:/\:\__\
               \;:::/  / \:\/:/  / \:\ \/__/ \:\ \/__/ \:\/:/  /
                |:\/__/   \::/  /   \:\__\    \:\__\    \::/  /
                 \|__|     \/__/     \/__/     \/__/     \/__/



    Rocco is  a quick-and-dirty,  literate-programming-style documentation
    generator for Ruby. See the Rocco generated docs for more information:

                    <http://rtomayko.github.com/rocco/>


    Rocco is a port of,  and borrows heavily from, Docco  -- the original
    quick-and-dirty,   hundred-line-long,   literate-programming-style
    documentation generator in CoffeeScript:

                    <http://jashkenas.github.com/docco/>