Ubuntu 12.04 安装 docco
水一次, 没想到安装个 docco 还要绕, 安装记录记下,
安装好了以后发现不能用, 虽然我知道 pygments 没装, 但也不给个提示的…
sudo npm install -g docco
➤➤ docco 01/*.coffee
events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: write EPIPE
at errnoException (net.js:670:11)
at Object.afterWrite [as oncomplete] (net.js:503:19)
➤➤ docco script.coffee
events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: write EPIPE
at errnoException (net.js:670:11)
at Object.afterWrite [as oncomplete] (net.js:503:19)
Ubuntu 12.04 万幸自带包的, 速度安装.
aptitude search python-pygments
sudo aptitude install python-pygments
装上之后, 正常了, 无论是所个还是单个文件都会生成文件夹:
➤➤ docco script.coffee
docco: script.coffee -> docs/script.html
➤➤ docco *.coffee
docco: script.coffee -> docs/script.html