mdctl-docs
Medable documentation tool.
env
Navigate to directory containing an exported environment
export ENV_EXPORT_HOME=/path/to/env/export
cd ${ENV_EXPORT_HOME}
Generate documentation
mdctl docs --module env
By default, documentation is generated in ${ENV_EXPORT_HOME}/docs
.
To capture additional information such as version, authors, and summary, please include a JSdoc styled comment to the top of the script file. JSdoc description and examples are rendered using markdown formatting.
Routes
To capture route parameters (path, body, query, header, and response) please include a JSdoc styled comment describing the route. Routes can be defined within the header of a route script file, or above their coresponding decorator within a library script file.
Route Script
Decorator: @route
@route({
weight: 1,
method: 'POST',
name: 'c_340_post',
path: 'c_340_ping',
acl: 'role.administrator'
})
post({ req, res, body, next, runtime }) {
return body('myData')
}
TODO
- Upgrade to node v12.X (currently v8.16.2)
- Additional tests for runtime resources
- Sync with master branch