{"id":925,"date":"2012-03-01T02:04:32","date_gmt":"2012-03-01T08:04:32","guid":{"rendered":"http:\/\/bateru.com\/news\/?p=925"},"modified":"2012-04-29T16:55:43","modified_gmt":"2012-04-29T22:55:43","slug":"how-to-install-docco-on-windows-7","status":"publish","type":"post","link":"https:\/\/bateru.com\/news\/2012\/03\/how-to-install-docco-on-windows-7\/","title":{"rendered":"How to install Docco.coffee on Windows 7"},"content":{"rendered":"<p><a href=\"http:\/\/jashkenas.github.com\/docco\/\">Docco.coffee<\/a> requires the following to run.<\/p>\n<ol>\n<li>Node.js<\/li>\n<li>Python <\/li>\n<li>CoffeeScript<\/li>\n<li>Pygments <\/li>\n<li>Docco <\/li>\n<\/ol>\n<p>Step 1:<br \/>\nDownload and install <a href=\"http:\/\/nodejs.org\/#download\">Node.js<\/a> and <a href=\"http:\/\/www.python.org\/getit\/releases\/2.7\/\">Python 2.7<\/a>. Python 3.2 might work but I haven&#8217;t yet tried it out.<\/p>\n<p>Step 2:<br \/>\nAdd the root and &#8216;node_modules&#8217; directories for node.js and the root and &#8220;Script&#8221; directory for python 2.7 to your path environment variable.<br \/>\n<code>C:\\nodejs;%userprofile%\\node_modules\\.bin;C:\\python27;C:\\Python27\\Scripts;<\/code><\/p>\n<p>Step 3:<br \/>\nOpen up a command prompt, start -> run -> type &#8220;cmd&#8221;.<\/p>\n<p>Type <code>npm install coffee-script<\/code><br \/>\n*You should see installation output on the screen*<\/p>\n<p>Type <code>npm install docco<\/code><br \/>\n*You should see installation output on the screen*<\/p>\n<p>Step 4:<br \/>\nDownload <a href=\"http:\/\/peak.telecommunity.com\/dist\/ez_setup.py\">ez_setup<\/a><br \/>\nIn command prompt, navigate to where you downloaded <a href=\"http:\/\/peak.telecommunity.com\/dist\/ez_setup.py\">ez_setup.py<\/a>.<br \/>\nType in <code>python ez_setup.py<\/code>.<\/p>\n<p>Step 5:<br \/>\nIn command prompt type <code>easy_install pygments<\/code> to install Pygments.<\/p>\n<p>Done.<\/p>\n<p>Test<br \/>\nDownload <a href=\"http:\/\/documentcloud.github.com\/underscore\/underscore.js\">&#8216;underscore.js&#8217;<\/a> to your desktop.<\/p>\n<p>Open up a command prompt and type in <code>docco %userprofile%\\desktop\\underscore.js<\/code>.<br \/>\nYou should see two output files, &#8220;p&#8221; and &#8220;docs&#8221;.<br \/>\nThe annotated source code is the html file in the docs folder.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docco.coffee requires the following to run. Node.js Python CoffeeScript Pygments Docco Step 1: Download and install Node.js and Python 2.7. Python 3.2 might work but I haven&#8217;t yet tried it out. Step 2: Add the root and &#8216;node_modules&#8217; directories for node.js and the root and &#8220;Script&#8221; directory for python 2.7 to your path environment variable. &hellip; <a href=\"https:\/\/bateru.com\/news\/2012\/03\/how-to-install-docco-on-windows-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to install Docco.coffee on Windows 7<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[117,113,118,115,164,114,116,177,16],"class_list":["post-925","post","type-post","status-publish","format-standard","hentry","category-frontend-tech","category-tutorials","tag-coffeescript","tag-docco","tag-documentation-generator","tag-installation","tag-javascript","tag-node-js","tag-pygments","tag-python","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/comments?post=925"}],"version-history":[{"count":7,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":1045,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/posts\/925\/revisions\/1045"}],"wp:attachment":[{"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/media?parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/categories?post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bateru.com\/news\/wp-json\/wp\/v2\/tags?post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}