Permalink
Switch branches/tags
Commits on Mar 5, 2011
  1. 2 char indent in tests

    rtomayko committed Mar 5, 2011
  2. CHANGELOG formatting

    rtomayko committed Mar 5, 2011
  3. do not add ./ to paths

    rtomayko committed Mar 5, 2011
Commits on Feb 12, 2011
  1. Updating changelog.

    mikewest committed Feb 12, 2011
  2. [GH-28]: Descriptive section names.

    Header sections will get a descriptive hash anchor: rather than
    `section-1`, the section will be given an id containing the header text
    with spaces stripped and replaced with `_`.  `section-Header_Goes_Here`
    for instance.
    
    Thanks to [Luke Andrew][1] for the initial work on this patch.
    
    [1]: https://github.com/zyx
    zyx committed with mikewest Feb 12, 2011
Commits on Nov 25, 2010
  1. Relative paths in the source jumplist

    Adding a dependency on `Pathname`, which provides the excellent
    `relative_path_from` method.  That happens to be exactly what's needed
    to fix the pathnames for the source jumplist issue that [Topfunky][]
    reported.
    
    Closes GH-26.
    
    [Topfunky]: https://github.com/topfunky
    mikewest committed Nov 25, 2010
  2. Fixing block comment highlighting for block-only languages

    Languages without single-line comments (CSS) explode when running
    through `highlight`, as the `DIVIDER` mechanism doesn't deal well with
    `nil` comment characters.  I've reworked the mechanism such that it
    uses multi-line comments when single-line comments aren't available.
    mikewest committed Nov 25, 2010
Commits on Nov 23, 2010
Commits on Nov 22, 2010
  1. Merge branch 'blockcomments'

    mikewest committed Nov 22, 2010
  2. Normalizing leading space in comments

    That is:
    
        def function:
            """
                This is a comment
                with _lots_ of leading
                space!  OMG!
            """
            pass
    
    Will parse into:
    
        [
            [
                [   "This is a comment",
                    "with _lots_ of leading",
                    "space!  OMG!"
                ],
                ...
            ]
        ]
    mikewest committed Nov 22, 2010
  3. Block comment parsing: basics.

    Block comments are parsed out, but the commentchar removal isn't working
    yet.  I'll refactor that code out of it's current home, and move it into
    `parse`, as I need to know what _kind_ of comment it is that I'm
    stripping.  Carrying that metadata around doesn't make any sense, so
    I'll just convert the comment on the fly into a set of non-comment
    strings.
    mikewest committed Nov 22, 2010
Commits on Nov 21, 2010
  1. Adding Ruby block comment syntax.

    Working towards GH-22.
    mikewest committed Nov 21, 2010
  2. Really fixing extensionless file support

    Pieced together a fix using Regex and `File.extname` from http://github.com/vast/rocco
    
    Closes GH-24.
    vast committed with mikewest Oct 24, 2010
  3. Locking the CSS file down to Docco's v0.3.0

    I'm a bit loath to change the rendering entirely without talking to
    Ryan, but I'd really prefer to replicate Docco's CSS file generation
    rather than hotlinking out to the GitHub-hosted version.  Offline
    support would require it, if for no other reason...
    
    Closes GH-23.  Thanks to [Myles Byrne](http://www.myles.id.au/)
    mikewest committed Nov 21, 2010
Commits on Oct 24, 2010
Commits on Oct 21, 2010
  1. Skipping Python/Ruby 1.9 source encoding

    In the same way that it makes sense to skip the shebang (#!) line in
    scripts, it makes sense to skip the encoding definition in Python files
    (described by [PEP 263][p]) and Ruby 1.9 files (similar enough syntax
    that it's not worth worrying about.
    
    [p]: http://www.python.org/dev/peps/pep-0263/
    mikewest committed Oct 21, 2010
Commits on Oct 20, 2010
  1. Merge branch 'language'

    mikewest committed Oct 20, 2010
  2. Autopopulate comment_chars for known languages

    Adding comment characters for bash, c, c++, coffee script, java, javascript, lua, python, ruby, and scheme.  Paving the way for block-comment parsing later on...
    
    Closes issue #20.
    mikewest committed Oct 20, 2010
  3. Attempt to autodetect file language

    `pygmentize` 1.0+ has an `-N` option that attempts to match a file (via
    the extension) to a language lexer.  If `pygmentize` is installed, we'll
    run it with this option to get a language.
    
    If no language is detected, `pygmentize -N` returns `text`.  In that case,
    we'll first look for a user-provided language to use as a fallback.  If no
    language was provided, highlight using `ruby` as a reasonable default.
    
    Closes issue #19.
    mikewest committed Oct 20, 2010
  4. Typo: Closes issue #11

    Thanks to Paul Chavard ( http://github.com/tchak ) for
    the report and fix.
    mikewest committed Oct 20, 2010
Commits on Oct 19, 2010
  1. Specify encoding for Pygments

    This closes issue #10, in theory, but I'm not completely happy with the
    behavior.  The output for both UTF-8 and ISO-8859-1 sources is arguably
    correct, but I think it'd be better to do some autodetecting of the file
    encoding, and explicitly convert everything to UTF-8 on input.  One
    option is the [`chardet` gem][gem], but I'm loath to add another
    dependency to Rocco...
    
    [gem]: http://rubygems.org/gems/chardet/versions/0.9.0
    mikewest committed Oct 19, 2010
  2. Cleaning up tests after bugfix merges:

    As a result of fixing issue #15, a few tests broken.  This commit brings
    the tests up to date with the latest behavior.
    mikewest committed Oct 19, 2010
  3. task :default => :test

    rtomayko committed Oct 19, 2010