UNPKG

dgeni-packages

Version:

A collection of dgeni packages for generating documentation from source code

10 lines 305 B
module.exports = function() { return { name: 'area', defaultFn(doc) { // Code files are put in the 'api' area // Other files compute their area from the first path segment return (doc.fileInfo.extension === 'js') ? 'api' : doc.fileInfo.relativePath.split('/')[0]; } }; };