From 6f79bfd5d04c09bce13ece8a397cc657710d27c9 Mon Sep 17 00:00:00 2001 From: Casey Howard Date: Wed, 9 Sep 2015 16:55:44 -0700 Subject: [PATCH] Do not load angular by default. Allow user to specify their own angular. --- README.md | 16 +--------------- index.js | 8 -------- package.json | 2 -- 3 files changed, 1 insertion(+), 25 deletions(-) diff --git a/README.md b/README.md index 110d923..7ad6f1a 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ gulp.task('ngdocs', [], function () { }); ``` -To use a different angularjs version pass `angular` and `angular-animate` files in scripts. +Please specify you own version of angular and angular-animate. They will not be included by default. ```js gulp.task('ngdocs', [], function () { @@ -53,20 +53,6 @@ gulp.task('ngdocs', [], function () { 'bower_components/angular-animate/angular-animate.min.js.map' ] } - - /* - If you choose to use the remote links pass in the .min.js links for angular and angular-animate - - var options = { - scripts: [ - 'http://ajax.googleapis.com/ajax/libs/angularjs//angular.min.js', - 'http://ajax.googleapis.com/ajax/libs/angularjs//angular-animate.min.js' - ] - } - */ - return gulp.src('path/to/src/*.js') - .pipe(gulpDocs.process(options)) - .pipe(gulp.dest('./docs')); }); ``` diff --git a/index.js b/index.js index 9e85b8f..f4c4bfb 100644 --- a/index.js +++ b/index.js @@ -106,14 +106,6 @@ function processDoc(opts) { //Default root paths for scripts var scriptPaths = { - angular : [ - 'angular/angular.min.js', - 'angular/angular.min.js.map' - ], - angularAnimate: [ - 'angular-animate/angular-animate.min.js', - 'angular-animate/angular-animate.min.js.map' - ], marked: [ 'marked/lib/marked.js' ] diff --git a/package.json b/package.json index 49e6b34..aeb0f69 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,6 @@ "string_decoder": "0.10.31", "through2": "0.6.1", "canonical-path": "0.0.2", - "angular": "~1.3.1", - "angular-animate": "~1.3.1", "marked": "0.3.2" }, "devDependencies": {