I have an OpenAPI yaml file that I have built in the Swagger Editor tool. I would now like to build a static site that looks exactly the same as that.
I would like to incorporate this into a Gitlab CI/CD pipeline so that any changes are automatically updated.
Currently, I am using the redoc-cli
and I really don't like the way it looks. Also, there is no "Try it out" functionality.
I have been searching all day for the necessary components to build that static site, but there do not seem to be any concrete answers.
I am currently build my GitLab Pages site like this:
pages:
stage: deploy
script:
- mkdir ~/.npm-global
- npm config set prefix '~/.npm-global'
- echo "export PATH=~/.npm-global/bin:$PATH" > ~/.profile
- source ~/.profile
- npm install -g redoc-cli --verbose
- redoc-cli bundle -o public/index.html swagger.yaml
artifacts:
paths:
- public
only:
- master