Docco evaluates .coffee or .js files for comments in Markdown syntax to generate documentation. The setup process was a little confusing for me on a Windows machine, so I thought I would be friendly and document the process for others.
Install Node.js
- Install node.js
- Add node path to
NODE_PATH
environment variable - Add
%NODE_PATH%
toPATH
environment variable
Install Python
- Install python
- Add python path to
PYTHON_PATH
environment variable - Add
%PYTHON_PATH%
toPATH
environment variable - Add
%PYTHON_PATH%\Scripts
toPATH
environment variable
Install Pygments
- Download Pygments 1.4
- Extract the compressed file to
%PYTHON_PATH%/Scripts/pygments-1.4/
- Start a command prompt at
%PYTHON_PATH%/Scripts/pygments-1.4/
- From the command prompt, run
python setup.py install
Install CoffeeScript
- Download coffeescript
- Extract the compressed file to
%NODE_PATH%/node_modules/coffee-script/
- Create a file called
%NODE_PATH%/coffee.cmd
...
Use the following contents:
@echo off
node.exe %~dp0\.\node_modules\coffee-script\bin\coffee %*
Install Docco
- Download docco
- Extract to
%NODE_PATH%/node_modules/docco/
- Create a file called
%NODE_PATH%/docco.cmd
...
Use the following contents:
@echo off
node.exe %~dp0\.\node_modules\docco\bin\docco %*
Run Docco
- Run
docco <filename>.js