Created
April 3, 2021 10:34
-
-
Save empeje/cd813544d72c87908dfcc2949ba9ff6c to your computer and use it in GitHub Desktop.
API Docs Using Swagger + Redoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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