UNPKG

suh-dgeni-ngdocs

Version:

A package to generate ng-docs similar to what is used on AngularJS website.

10 lines (9 loc) 253 B
module.exports = { name: 'step', transforms: function(doc, tag, value) { if ( doc.docType !== 'tutorial' ) { throw new Error('Invalid tag, step. You should only use this tag on tutorial docs'); } return parseInt(value,10); } };