Cc.documentation is a project mainly written in JavaScript, it's free.
Help document for templates and scripts
This is the base document that I use a template to create my documentation files for codecanyon.net and themeforest.net.