2017-01-26 09:03:53 -05:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 15:08:49 -04:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2017-01-26 09:03:53 -05:00
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
const Package = require('dgeni').Package;
|
|
|
|
const gitPackage = require('dgeni-packages/git');
|
2017-04-21 08:10:52 -04:00
|
|
|
const apiPackage = require('../angular-api-package');
|
|
|
|
const contentPackage = require('../angular-content-package');
|
2021-01-05 13:50:23 -05:00
|
|
|
const errorsPackage = require('../angular-errors-package');
|
2018-09-14 05:05:57 -04:00
|
|
|
const cliDocsPackage = require('../cli-docs-package');
|
2017-02-21 11:57:19 -05:00
|
|
|
|
2021-01-05 13:50:23 -05:00
|
|
|
module.exports = new Package('angular.io', [gitPackage, apiPackage, contentPackage, cliDocsPackage, errorsPackage])
|
2017-04-01 02:01:44 -04:00
|
|
|
|
2017-04-21 08:10:52 -04:00
|
|
|
// This processor relies upon the versionInfo. See below...
|
|
|
|
.processor(require('./processors/processNavigationMap'))
|
2018-03-09 03:34:58 -05:00
|
|
|
.processor(require('./processors/createOverviewDump'))
|
2018-01-15 11:10:32 -05:00
|
|
|
.processor(require('./processors/cleanGeneratedFiles'))
|
2017-01-26 09:03:53 -05:00
|
|
|
|
2017-04-21 08:10:52 -04:00
|
|
|
// We don't include this in the angular-base package because the `versionInfo` stuff
|
|
|
|
// accesses the file system and git, which is slow.
|
|
|
|
.config(function(renderDocsProcessor, versionInfo) {
|
|
|
|
// Add the version data to the renderer, for use in things like github links
|
|
|
|
renderDocsProcessor.extraData.versionInfo = versionInfo;
|
2017-04-25 08:30:30 -04:00
|
|
|
})
|
2017-02-21 11:57:19 -05:00
|
|
|
|
2017-10-06 03:28:46 -04:00
|
|
|
.config(function(renderLinkInfo, postProcessHtml) {
|
|
|
|
renderLinkInfo.docTypes = postProcessHtml.docTypes;
|
2017-04-21 08:10:52 -04:00
|
|
|
});
|