Is there a way to suppress a specific tag without editing the partial?
Redsandro opened this issue · comments
Say I want to slim down documentation and remove e.g. author and copyright because they are 500 times the same. Can I specify somewhere to ignore them, rather than copy and edit the partials?
Using jsdoc-to-markdown
.
Well, one way is to tweak the partial:
- Duplicate this partial into your project (important - it must have the same filename
body.hbs
). - Remove the
{{>authors~}}
and{{>copyright~}}
lines - run
jsdoc2md --partial tweaks/body.hbs
The other way is to run .getTemplateData() to get the template data, manually strip out the unwanted fields, then pass the data (as options.data
) into .render().
Thank you! 👍