diff options
Diffstat (limited to 'docs/src/gen-docs.js')
| -rwxr-xr-x | docs/src/gen-docs.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js index abb001b5..9fc5f8db 100755 --- a/docs/src/gen-docs.js +++ b/docs/src/gen-docs.js @@ -18,6 +18,8 @@ writer.makeDir('build/docs/', true).then(function() {  }).then(function() {    return writer.makeDir('build/docs/components/font-awesome');  }).then(function() { +  return writer.makeDir('build/docs/e2etests'); +}).then(function() {    console.log('Generating AngularJS Reference Documentation...');    return reader.collect();  }).then(function generateHtmlDocPartials(docs_) { @@ -53,6 +55,10 @@ writer.makeDir('build/docs/', true).then(function() {      var id = doc.id.replace('angular.Module', 'angular.IModule');      fileFutures.push(writer.output('partials/' + doc.section + '/' + id + '.html', doc.html())); +    // If it has a sample Protractor test, output that as well. +    if (doc.protractorTests.length) { +      fileFutures.push(writer.output('ptore2e/' + doc.section + '/' + id + '_test.js', ngdoc.writeProtractorTest(doc))); +    }    });    ngdoc.checkBrokenLinks(docs); | 
