Skip to content

Commit b44af2a

Browse files
author
Glen Mailer
committed
Include what broke when docs building breaks
1 parent 405b48f commit b44af2a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/build_api_docs.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
21
#!/bin/bash
32

3+
set -e
4+
45
# commands to build the widdershins/slate api documentation.
56
#
67

78
build_api_v1() {
89
echo "Building API v1 documentation with Slate"
910
cd src-api
10-
bundle exec middleman build --clean
11+
bundle exec middleman build --clean --verbose
1112
echo "Output bundled."
1213
cp -R build/* /tmp/workspace/api
1314
echo "Output build moved to /tmp/workspace/api"
@@ -19,7 +20,7 @@ build_api_v2() {
1920
cd src-api; rm -r build; rm source/index.html.md
2021
curl https://circleci.com/api/v2/openapi.json > openapi.json
2122
node node_modules/widdershins/widdershins.js --environment widdershins.apiv2.yml --summary openapi.json -o source/index.html.md
22-
bundle exec middleman build --clean
23+
bundle exec middleman build --clean --verbose
2324
cp -R build/* /tmp/workspace/api/v2
2425
echo "Output build moved to /tmp/workspace/api/v2"
2526
}
@@ -28,7 +29,7 @@ build_api_v2() {
2829
build_crg() {
2930
echo "Building Configuration Reference with Slate "
3031
cd src-crg;
31-
bundle exec middleman build --clean
32+
bundle exec middleman build --clean --verbose
3233
echo "CRG bundle built."
3334
cp -R build/* /tmp/workspace/crg
3435
echo "CRG Output build moved to /tmp/workspace/crg"

0 commit comments

Comments
 (0)