Skip to content

Commit

Permalink
feat(build): Create better API docs
Browse files Browse the repository at this point in the history
Implements #644
  • Loading branch information
Göran Sander committed May 27, 2023
1 parent c293727 commit 9bad21a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ jobs:
- name: Install tool for creating stand-alone API html docs file
run: |
npm install redoc-cli --global
npm i @redocly/cli@latest
- name: Generate latest API doc files and convert to standalone html. Also commit back to GitHub repo
run: |
pwd
ls -la
cd src
node butler.js -c ./config/config-gen-api-docs.yaml --no-qs-connection &
sleep 10
sleep 20
curl localhost:8081/documentation/json > ../docs/api_doc/butler-api.json
curl localhost:8081/documentation/yaml > ../docs/api_doc/butler-api.yaml
redoc-cli build ../docs/api_doc/butler-api.yaml --output ../docs/api_doc/butler-api.html
npx @redocly/cli build-docs ../docs/api_doc/butler-api.yaml --output ../docs/api_doc/butler-api.html
pkill -f 'node butler.js'
git config --global user.name 'GitHub action'
git config --global user.email 'mountaindude@users.noreply.github.com'
Expand Down

0 comments on commit 9bad21a

Please sign in to comment.