Skip to content

Commit 427458f

Browse files
committed
Support override of docs server address
1 parent 073fddc commit 427458f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/gh-pages.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: npm install -g api-spec-converter
5353

5454
- name: Build
55-
run: make BUILD="build"
55+
run: make BUILD="build" DOCS_SERVER="https://api.us.code42.com"
5656
env:
5757
ga_analytics_id: ${{ secrets.GA_ANALYTICS }}
5858

.github/workflows/pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
run: npm install -g api-spec-converter
4949

5050
- name: Build
51-
run: make BUILD="build"
51+
run: make BUILD="build" DOCS_SERVER="https://api.us.code42.com"

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ DOCS_SRC = docs-src
33
DOCS = $(DOCS_SRC)/docs
44
DOCS_OUT = $(DOCS_SRC)/out
55
API_DOCS = $(BUILD)/api
6-
DOCS_SERVER = "https://api.us.code42.com"
7-
#DOCS_SERVER = "http://localhost:5000" # Use this value as the docserver for a locally hosted baldur instance
6+
DOCS_SERVER := "http://localhost:5000"
87
BUILD_SCRIPTS = build-scripts
98

109
all:: clean docs html locations download transform definitions unify

0 commit comments

Comments
 (0)