all files / packages/ngdoc-ext/ index.js

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                            
var Package = require('dgeni').Package;
var path = require('path');
 
/**
 * @dgPackage ngdoc-ext
 * @description Extensions for the dgeni-packages/ngdoc
 */
module.exports = new Package('ngdoc-ext', [require('dgeni-packages/ngdoc')])
 
.factory(require('./services/getTypeLink'))
 
// Add in the real processors for this package
.processor(require('./processors/embedImages'))
.processor(require('./processors/generateErrorsGroupArea'))
 
// add more templates location
.config(function(templateFinder) {
  templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates'));
})
 
// add filters
.config(function(templateEngine, getInjectables) {
  templateEngine.filters = templateEngine.filters.concat(getInjectables([
      require('./rendering/filters/type-link')
  ]));
})
;