Skip to content

Instantly share code, notes, and snippets.

@empeje
Created April 3, 2021 10:34
Show Gist options
  • Select an option

  • Save empeje/cd813544d72c87908dfcc2949ba9ff6c to your computer and use it in GitHub Desktop.

Select an option

Save empeje/cd813544d72c87908dfcc2949ba9ff6c to your computer and use it in GitHub Desktop.
API Docs Using Swagger + Redoc
pages:
image: node:latest
stage: deploy
script:
- npm install -g redoc-cli
# public/index.html is the output
# documentation/openapi.yaml is the input
- redoc-cli bundle -o public/index.html documentation/openapi.yaml
artifacts:
paths:
- public
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment