The plugin will wait until your Thorin application is booted and, given your application actions, it will generate a markdown .md file describing your actions and their input data. This should be included in the development only.
npm i --save thorin-plugin.docs@1.x
'use strict'; // app.js entry file const thorin = require('thorin'); if(thorin.env === 'development') { thorin.addPlugin(require('thorin-plugin-docs')); // <- add this line } thorin.run((err) => {});
# run to setup the plugin node app.js --setup=plugin.docs
The plugin will listen for the thorin.EVENT.RUN
event of your application, use all registered actions
to generate the docs markdown file with the action's input data and possible authorizations and place it under docs/actions.md
You can always create a new issue on GitHub or contact one of the core founders by chat.