2017-01-26 14:03:53 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00: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 12:10:52 +00:00
|
|
|
const apiPackage = require('../angular-api-package');
|
|
|
|
|
const contentPackage = require('../angular-content-package');
|
2021-01-05 18:50:23 +00:00
|
|
|
const errorsPackage = require('../angular-errors-package');
|
2022-01-11 20:49:04 +00:00
|
|
|
const extendedDiagnosticsPackage = require('../angular-extended-diagnostics-package');
|
2018-09-14 09:05:57 +00:00
|
|
|
const cliDocsPackage = require('../cli-docs-package');
|
2017-02-21 16:57:19 +00:00
|
|
|
|
2022-01-11 20:49:04 +00:00
|
|
|
module.exports = new Package(
|
|
|
|
|
'angular.io',
|
|
|
|
|
[gitPackage, apiPackage, contentPackage, cliDocsPackage, errorsPackage, extendedDiagnosticsPackage])
|
2017-04-01 06:01:44 +00:00
|
|
|
|
2017-04-21 12:10:52 +00: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 12:10:52 +00: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 12:30:30 +00:00
|
|
|
})
|
2017-02-21 16:57:19 +00:00
|
|
|
|
2017-10-06 07:28:46 +00:00
|
|
|
.config(function(renderLinkInfo, postProcessHtml) {
|
|
|
|
|
renderLinkInfo.docTypes = postProcessHtml.docTypes;
|
2017-04-21 12:10:52 +00:00
|
|
|
});
|