2017-01-26 14:03:53 +00:00
|
|
|
/**
|
|
|
|
* @license
|
2020-05-19 12:08:49 -07:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2017-01-26 14:03:53 +00: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 13:10:52 +01:00
|
|
|
const apiPackage = require('../angular-api-package');
|
|
|
|
const contentPackage = require('../angular-content-package');
|
2021-01-05 10:50:23 -08:00
|
|
|
const errorsPackage = require('../angular-errors-package');
|
2018-09-14 10:05:57 +01:00
|
|
|
const cliDocsPackage = require('../cli-docs-package');
|
2017-02-21 16:57:19 +00:00
|
|
|
|
2021-01-05 10:50:23 -08:00
|
|
|
module.exports = new Package('angular.io', [gitPackage, apiPackage, contentPackage, cliDocsPackage, errorsPackage])
|
2017-04-01 07:01:44 +01:00
|
|
|
|
2017-04-21 13:10:52 +01:00
|
|
|
// This processor relies upon the versionInfo. See below...
|
|
|
|
.processor(require('./processors/processNavigationMap'))
|
2018-03-09 08:34:58 +00:00
|
|
|
.processor(require('./processors/createOverviewDump'))
|
2018-01-15 16:10:32 +00:00
|
|
|
.processor(require('./processors/cleanGeneratedFiles'))
|
2017-01-26 14:03:53 +00:00
|
|
|
|
2017-04-21 13:10:52 +01: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 13:30:30 +01:00
|
|
|
})
|
2017-02-21 16:57:19 +00:00
|
|
|
|
2017-10-06 08:28:46 +01:00
|
|
|
.config(function(renderLinkInfo, postProcessHtml) {
|
|
|
|
renderLinkInfo.docTypes = postProcessHtml.docTypes;
|
2017-04-21 13:10:52 +01:00
|
|
|
});
|