Open jm3 opened 12 years ago
It should work with anything supported by pygments. Perhaps it's something with the webservice. Mind installing pygments locally and giving that shot?
Ah, ok, will get a local pygmentization going.
Any recommended way for me to simply test the web service for parsing JS, first?
@jm3 Rocco doesn't detect input file language without pygments
installed locally:
def detect_language
@_language ||=
if pygmentize?
%x[pygmentize -N #{@file}].strip.split('+').first
else
"text"
end
end
I suggest (forgotten-labors/rocco@13b7975626dbc06e3d018e1535499b3a66566a08) a basic language detection, since some of defined code styles has keys similar to file extensions.
It did indeed work with a local pygments install [1]. If there's anything I can do here to help test / verify / document the above, please let me know!
[1] http://jm3.github.com/thunderous-configs/en.wikipedia.org.html
@jm3 You still can generate documentation without pygments
installed locally. Just pass the --language
option to rocco:
$ bundle exec rocco --language=js javascript.js
or
$ bundle exec rocco -l js javascript.js
Is Javascript not one of the languages Rocco will generate docs for? Test run with two trivial example files:
RESULT: generated HTML for ruby file looks fine, generated HTML for js file = no code / comments