nikhilmodak/gulp-ngdocs — pull request #4 by Nickdouille (2014-10-29 14:23:25+00:00)
Title: Windows OS integration

Since you are using "path" dependency, there is two differents kind of "path delimiter" : "\\" on Windows environment or "/" for posix environment.
So your script didn't work on Windows based system. (with '\\' delimiter)