Logo
Explore Help
Sign In
honeymoose/angular-cn
1
0
Fork 0
You've already forked angular-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-cn/aio/transforms/angular.io-package/readers/navigation.js

19 lines
499 B
JavaScript
Raw Normal View History

build(aio): add version into navigation.json The navigation.json is now passed through the dgeni pipeline. The source file has been moved to `aio/content/navigation.json` but the generated file will now appear where the original source file was found, `aio/src/content/navigation.json`. Everything inside `aio/src/content` is now generated and ignored by git. The `processNavigationMap` processor in this commit adds the current version information to the navigation.json file and verifies the relative urls in the file map to real documents. The navigationService exposes the versionInfo as an observable, which the AppComponent renders at the top of the sidenav.
2017-03-20 22:23:20 +00:00
/**
* Read in the navigation JSON
*/
module.exports = function navigationFileReader() {
return {
name: 'navigationFileReader',
getDocs: function(fileInfo) {
// We return a single element array because content files only contain one document
return [{
docType: 'navigation-map',
data: JSON.parse(fileInfo.content),
template: 'json-doc.template.json',
id: 'navigation',
aliases: ['navigation', 'navigation.json']
}];
}
};
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 80ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API