From 166d932ee44f56bd0ae42564c698969b6aa8c038 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 18 Sep 2015 13:05:20 +0100 Subject: [PATCH] refact(angular.io-package): remove unnecessary public-docs-package --- .../api-builder/angular.io-package/index.js | 19 +++++++++++++-- .../api-builder/public-docs-package/index.js | 24 ------------------- 2 files changed, 17 insertions(+), 26 deletions(-) delete mode 100644 public/api-builder/public-docs-package/index.js diff --git a/public/api-builder/angular.io-package/index.js b/public/api-builder/angular.io-package/index.js index d4ceca02ac..f542229b0d 100644 --- a/public/api-builder/angular.io-package/index.js +++ b/public/api-builder/angular.io-package/index.js @@ -1,6 +1,6 @@ var path = require('canonical-path'); var Package = require('dgeni').Package; -var basePackage = require('../public-docs-package'); +var basePackage = require('../docs-package'); // MIGRATION: removed these vars // var PARTIAL_PATH = 'partials'; @@ -23,7 +23,17 @@ module.exports = new Package('angular.io', [basePackage]) .unshift(path.resolve(__dirname, 'templates')); }) -.config(function(writeFilesProcessor, readFilesProcessor) { +.config(function(readTypeScriptModules, writeFilesProcessor, readFilesProcessor) { + + readTypeScriptModules.sourceFiles = [ + 'angular2/lifecycle_hooks.ts', + 'angular2/core.ts', + 'angular2/http.ts', + 'angular2/router.ts', + 'angular2/test.ts' + ]; + readTypeScriptModules.hidePrivateMembers = true; + // MIGRATION: HACK - readFileProcessor.basePath set to point to a local repo location // because the docs-package-processor will // have previously set it to point to angular/angular repo. @@ -32,6 +42,11 @@ module.exports = new Package('angular.io', [basePackage]) writeFilesProcessor.outputFolder = 'js/latest/api'; }) +.config(function(getLinkInfo) { + getLinkInfo.useFirstAmbiguousLink = false; +}) + + .config(function(readFilesProcessor, generateNavigationDoc, createOverviewDump) { // Clear out unwanted processors readFilesProcessor.$enabled = false; diff --git a/public/api-builder/public-docs-package/index.js b/public/api-builder/public-docs-package/index.js deleted file mode 100644 index ee8823d845..0000000000 --- a/public/api-builder/public-docs-package/index.js +++ /dev/null @@ -1,24 +0,0 @@ -var Package = require('dgeni').Package; -var basePackage = require('../docs-package'); - -module.exports = new Package('angular-v2-public-docs', [basePackage]) - -.config(function(readTypeScriptModules) { - readTypeScriptModules.sourceFiles = [ - 'angular2/lifecycle_hooks.ts', - 'angular2/core.ts', - 'angular2/http.ts', - 'angular2/router.ts', - 'angular2/test.ts' - ]; - readTypeScriptModules.hidePrivateMembers = true; -}) - -.config(function(getLinkInfo) { - getLinkInfo.useFirstAmbiguousLink = false; -}) - -// Configure file writing -.config(function(writeFilesProcessor) { - writeFilesProcessor.outputFolder = 'dist/public_docs'; -});