Docker image for ReDoc.
It allows you to bundle your Swagger docs into a zero-dependency HTML file.
docker pull mgbi/redoc-cli
See help.
docker run --rm mgbi/redoc-cli
Bundle Swagger docs and ReDoc into a zero-dependency HTML file.
docker run --rm mgbi/redoc-cli --volume $PWD:/mnt --workdir /mnt mgbi/redoc-cli bundle YOUR_FILE.yaml
The HTML file will be bundled in $PWD/redoc-static.html.
Start the sever with Swagger docs rendered with ReDoc. Supports SSR mode (--ssr) and can watch the spec (--watch:
docker run --rm mgbi/redoc-cli --volume $PWD/YOUR_FILE.yml:/mnt/swagger.yaml --publish 8080:8080 mgbi/redoc-cli serve /mnt/swagger.yaml
Available options: https://github.com/Redocly/redoc#redoc-options-object
Available theme options: https://github.com/Redocly/redoc/blob/master/src/theme.ts
Some examples:
orange: $ redoc-cli bundle [spec] --options.theme.colors.primary.main=orangenativeScrollbars option set to true: $ redoc-cli serve [spec] --options.nativeScrollbars$ redoc-cli bundle [spec] -t custom.hbstemplateOptions: $ redoc-cli bundle [spec] -t custom.hbs --templateOptions.metaDescription "Page meta description"See how to validate Swagger files or bundle them into a combined file:
https://github.com/MGBI/docker-swagger-cli
See https://github.com/Redocly/redoc for further information.
Content type
Image
Digest
Size
63 MB
Last updated
over 5 years ago
docker pull mgbi/redoc-cli