feat(aio): enable data driven homepage announcements (#22043)

PR Close #22043
This commit is contained in:
Pete Bacon Darwin
2018-02-06 17:55:43 +00:00
committed by Miško Hevery
parent aa456edafc
commit fbef94a8ee
7 changed files with 219 additions and 6 deletions

View File

@ -67,6 +67,11 @@ module.exports = new Package('angular-content', [basePackage, contentPackage])
include: CONTENTS_PATH + '/navigation.json',
fileReader: 'jsonFileReader'
},
{
basePath: CONTENTS_PATH,
include: CONTENTS_PATH + '/marketing/announcements.json',
fileReader: 'jsonFileReader'
},
{
basePath: CONTENTS_PATH,
include: CONTENTS_PATH + '/marketing/contributors.json',
@ -104,6 +109,7 @@ module.exports = new Package('angular-content', [basePackage, contentPackage])
},
{docTypes: ['navigation-json'], pathTemplate: '${id}', outputPathTemplate: '../${id}.json'},
{docTypes: ['contributors-json'], pathTemplate: '${id}', outputPathTemplate: '../${id}.json'},
{docTypes: ['announcements-json'], pathTemplate: '${id}', outputPathTemplate: '../${id}.json'},
{docTypes: ['resources-json'], pathTemplate: '${id}', outputPathTemplate: '../${id}.json'}
]);
})