better-docs
better-docs copied to clipboard
Example Configuration opts > template Path Sends Error
When I use the configuration available here: https://github.com/SoftwareBrothers/better-docs#customization
I get the error:
FATAL: Unable to load template: Cannot find module '/home/rildev/Projects/helloasso/Helpers/node_modules/better-docs/publish.js/publish'
Require stack:
- /home/cyril/Projects/helloasso/Helpers/node_modules/jsdoc/cli.js
- /home/cyril/Projects/helloasso/Helpers/node_modules/jsdoc/jsdoc.js
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Adding the full node_modules/better-docs path in the opt > template fixes it:
"opts": {
"template": "node_modules/better-docs"
},