UNPKG

dgeni-packages

Version:

A collection of dgeni packages for generating documentation from source code

12 lines (11 loc) 278 B
const path = require('canonical-path'); module.exports = function() { return { name: 'module', defaultFn(doc) { if ( doc.area === 'api' && doc.docType !== 'overview' ) { return path.dirname(doc.fileInfo.relativePath).split('/')[0]; } } }; };