Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Feb 27, 2020
1 parent 77f5e49 commit bec7d2a
Show file tree
Hide file tree
Showing 177 changed files with 2,166 additions and 10,760 deletions.
16 changes: 5 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
all: clean build/relay.html build/public-api
API:=$(subst src/,,$(wildcard src/*))
all: clean $(API)

build/public-api:
apidoc -v --config src/public-api -i src/public-api/endpoints -f ".*\\.md$$" -o $@ -t template

build/relay/openapi.yml:
# openapi requires that the parent folder exist but not the target one...
$(API):
mkdir -p build
rm -fr build/relay
openapi bundle src/relay/openapi.yml -o $@

build/relay.html: build/relay/openapi.yml
redoc-cli bundle --disableGoogleFont --options.theme.colors.primary.main="#f08004" --options.expandResponses="200," --options.hideHostname=1 --output $@ $<
openapi bundle src/$@/openapi.yml -o build/$@/openapi.yml
redoc-cli bundle --disableGoogleFont --options.theme.colors.primary.main="#f08004" --options.expandResponses="200," --options.hideHostname=1 --output build/$@/index.html build/$@/openapi.yml

clean:
rm -rf build
Expand Down
22 changes: 0 additions & 22 deletions src/public-api/apidoc.json

This file was deleted.

317 changes: 0 additions & 317 deletions src/public-api/endpoints/changeRequests.md

This file was deleted.

Loading

0 comments on commit bec7d2a

Please sign in to comment.