Skip to content

Instantly share code, notes, and snippets.

@aronbudinszky
Last active November 15, 2019 09:56
Show Gist options
  • Save aronbudinszky/fc96143b8bfc9ab16d7044f9b79fd7ab to your computer and use it in GitHub Desktop.
Save aronbudinszky/fc96143b8bfc9ab16d7044f9b79fd7ab to your computer and use it in GitHub Desktop.
Use redoc.
# Generates the spec into zero-dependency HTML file
redoc-cli bundle -o ~/desired/path/for/output/index.html ~/path/to/your/openapi.yaml
# Starts a server with spec rendered with ReDoc. Supports SSR mode (--ssr) and can watch the spec (--watch)
redoc-cli serve ~/path/to/your/openapi.yaml --watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment