Small package to build documentation from swagger.
Build on top of node.js, bootprint and html-minifier
git clone [email protected]:koluchiy/bootprint-docker.git
npm i
node run.js -s https://example.com/swagger.json
This command creates not minified docs inside tmp
folder and minified out.html
inside current folder.
You can path filesystem or web link for your swagger.json through option -s
.
You can specify folder for unminified result through option -tmp
.
mkdir result
docker run -v ${PWD}/result:/tmp/bootprint -u $(id -u):$(id -g) koluchiy/bootprint-docker -s https://example.com/swagger.json
This command put result of building docs in your local folder result
.
Folder result
will contain html, css and js files, building with bootprint
and file out.html
will contain minimized and concated result of bootprint.