Search code examples
jsdoc2md

jsdoc2md: how to sort function when using multiple files?


I am using jsdoc2md to generate the readme.MD based on multiple files : jsdoc2md --files a.js b.js > README.md

The result provides a list of unsorted functions. How to get the list of all function from all files in alphabetic order ?


Solution

  • you could use jsdoc2md.getTemplateData() to fetch the data, sort it as required, then pass it into jsdoc2md.render() as the options.data..