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 29, 2020
1 parent 77f5e49 commit ba918a3
Show file tree
Hide file tree
Showing 209 changed files with 3,067 additions and 10,761 deletions.
19 changes: 8 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
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.pathInMiddlePanel=1 --options.hideHostname=1 --output build/$@/index.html build/$@/openapi.yml
mkdir -p build/$@/assets
cp -r assets/* build/$@/assets/
[ -d src/$@/assets ] && cp -r src/$@/assets/* build/$@/assets/ || true

clean:
rm -rf build
Expand Down
Binary file added assets/rudder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ba918a3

Please sign in to comment.