5.0.1 • Published 6 years ago
sashay v5.0.1
sashay
A library for generating API documentation from a RAML v0.8 definition.
Installation
npm install sashayUsage
CLI
sashay [options] <source>Use sashay --help for CLI reference.
JavaScript
var sashay = require('sashay')
sashay(options)options Object
destinationStringThe build directory. Default
'./build/'.outputArrayThe output format. Must be
'json'or'web'. Default['json'].quietBooleanSet to
trueto suppress logs. Defaultfalse.sourceStringThe source file. Must be valid RAML. Required.
watchBooleanWatches files for changes and rebuilds. In
'web'mode, starts a preview server at http://127.0.0.1:8000/. Defaultfalse.validateBooleanWhether to validate RAML schema or not.
Deploying website to AWS S3
Using the AWS CLI:
sashay index.raml -o web
aws s3 sync ./build/ s3://your-bucket/ \
--exclude '*' \
--include '*.js' \
--include '*.css' \
--include '*.html'Publishing
- Run
make version v=x.x.x. - Create a pull request and merge.
License
See LICENSE.