diff options
Diffstat (limited to 'docs/config/processors')
| -rw-r--r-- | docs/config/processors/pages-data.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/config/processors/pages-data.js b/docs/config/processors/pages-data.js index ff419423..43fdc9dd 100644 --- a/docs/config/processors/pages-data.js +++ b/docs/config/processors/pages-data.js @@ -56,8 +56,19 @@ var navGroupMappers = { delete docTypes.module; }) + .tap(function(docTypes) { + if ( docTypes.input ) { + docTypes.directive = docTypes.directive || []; + // Combine input docTypes into directive docTypes + docTypes.directive = docTypes.directive.concat(docTypes.input); + delete docTypes.input; + } + }) + .forEach(function(sectionPages, sectionName) { + sectionPages = _.sortBy(sectionPages, 'name'); + if ( sectionPages.length > 0 ) { // Push a navItem for this section navItems.push({ |
