refact(angular.io-package): remove unnecessary public-docs-package

This commit is contained in:
Peter Bacon Darwin 2015-09-18 13:05:20 +01:00 committed by Jay Traband
parent 6e643c9622
commit 166d932ee4
2 changed files with 17 additions and 26 deletions

View File

@ -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;

View File

@ -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';
});