rtomayko/rocco — Issue #77: Rocco ignores JS code/comments
Author: jm3
Created: 2012-01-09 06:08:32+00:00
State: open

Is Javascript not one of the languages Rocco will generate docs for? Test run with two trivial example files:

$ cat javascript.js
/* something */
function f() {
// a comment
alert( "hi" );
}

$ cat ruby.rb
module SpanishHarlem
# purple drank
def meth_od(code)
puts "sup"
end

# stuff
puts "yo"
end

$ bundle exec rocco ruby.rb javascript.js
WARNING: Pygments not found. Using webservice.
pygmentize not in PATH; using pygments.appspot.com instead
rocco: ruby.rb -> ruby.html
rocco: javascript.js -> javascript.html

$ open ruby.html javascript.html

RESULT: generated HTML for ruby file looks fine, generated HTML for js file = no code / comments

![ruby works, js doesn't](https://img.skitch.com/20120109-fpxqn4e7ab5whif2r1h41fi394.png)