{"action":"created","issue":{"url":"https://api.github.com/repos/nikhilmodak/gulp-ngdocs/issues/28","labels_url":"https://api.github.com/repos/nikhilmodak/gulp-ngdocs/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/nikhilmodak/gulp-ngdocs/issues/28/comments","events_url":"https://api.github.com/repos/nikhilmodak/gulp-ngdocs/issues/28/events","html_url":"https://github.com/nikhilmodak/gulp-ngdocs/issues/28","id":56625866,"number":28,"title":"Lack of support for multiple files in multiple directories.","user":{"login":"jp5tc","id":10459571,"avatar_url":"https://avatars.githubusercontent.com/u/10459571?v=3","gravatar_id":"","url":"https://api.github.com/users/jp5tc","html_url":"https://github.com/jp5tc","followers_url":"https://api.github.com/users/jp5tc/followers","following_url":"https://api.github.com/users/jp5tc/following{/other_user}","gists_url":"https://api.github.com/users/jp5tc/gists{/gist_id}","starred_url":"https://api.github.com/users/jp5tc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jp5tc/subscriptions","organizations_url":"https://api.github.com/users/jp5tc/orgs","repos_url":"https://api.github.com/users/jp5tc/repos","events_url":"https://api.github.com/users/jp5tc/events{/privacy}","received_events_url":"https://api.github.com/users/jp5tc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-05T04:21:55Z","updated_at":"2015-02-05T14:08:37Z","closed_at":null,"body":"I have multiple files:\r\n\r\nmyapplication/js/controllers/samplecontroller.js\r\nmyapplication/js/directives/sampledirective.js\r\nmyapplication/js/main.js\r\nmyapplication/js/app.js\r\n\r\nI notice gulp-ngdocs can only read from one directory, and does not pick up any of the documentation in the subdirectories from js (i.e. controllers, directives).\r\n\r\nMy gulp task is:\r\ngulp.task('ngdocs', [], function () {\r\n  var gulpDocs = require('gulp-ngdocs');\r\n  var options = {\r\n    scripts: ['./controllers/*.js','./directives/*.js'], // this looks completely ignored\r\n    startPage: '/api',\r\n    title: \"Awesome Docs\",\r\n    titleLink: \"/api\"\r\n  }  \r\n  return gulp.src('myapplication/js/*.js')\r\n    .pipe(gulpDocs.process(options))\r\n    .pipe(gulp.dest('./docs'));\r\n});"},"comment":{"url":"https://api.github.com/repos/nikhilmodak/gulp-ngdocs/issues/comments/73051052","html_url":"https://github.com/nikhilmodak/gulp-ngdocs/issues/28#issuecomment-73051052","issue_url":"https://api.github.com/repos/nikhilmodak/gulp-ngdocs/issues/28","id":73051052,"user":{"login":"dschwank","id":8232196,"avatar_url":"https://avatars.githubusercontent.com/u/8232196?v=3","gravatar_id":"","url":"https://api.github.com/users/dschwank","html_url":"https://github.com/dschwank","followers_url":"https://api.github.com/users/dschwank/followers","following_url":"https://api.github.com/users/dschwank/following{/other_user}","gists_url":"https://api.github.com/users/dschwank/gists{/gist_id}","starred_url":"https://api.github.com/users/dschwank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschwank/subscriptions","organizations_url":"https://api.github.com/users/dschwank/orgs","repos_url":"https://api.github.com/users/dschwank/repos","events_url":"https://api.github.com/users/dschwank/events{/privacy}","received_events_url":"https://api.github.com/users/dschwank/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T14:08:37Z","updated_at":"2015-02-05T14:08:37Z","body":"I have the same problem - i call the .process() function with custom options, containing several script files. When I start the process it never emits the 'end' event. It works fine when I remove the `scripts` property.\r\n\r\nIt seems that the `copyTemplates()` method does not work as expected, because these files are always missing. When I remove the call `fstreams.push(copyTemplates(templates));` (index.js:302) everythings works fine - well fine means that I get the 'end' event, but the template files are missing, so it is not really fine ;)."}}