Commit 4934c8c 1 parent dbaeb91 commit 4934c8c Copy full SHA for 4934c8c
File tree 3 files changed +22
-5
lines changed
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ bash ./getDependencies.sh ${1}
4
+ gatsby develop;
Original file line number Diff line number Diff line change 1
1
BLUE=' \033[0;34m'
2
2
NC=' \033[0m' # No Color
3
3
4
+ SPEC_FILE=" "
5
+ if [ -n ${1} ]; then
6
+ SPEC_FILE=${1}
7
+ echo $( [ -f $SPEC_FILE ])
8
+ fi
9
+
4
10
echo
5
11
echo " ${BLUE} Fetching base theme${NC} "
6
12
if
9
15
git clone https://github.com/linode/linode-hugo-theme.git;
10
16
fi
11
17
12
- echo
13
- echo " ${BLUE} Fetching API specs${NC} "
14
- cd -
15
- curl https://raw.githubusercontent.com/linode/linode-api-docs/master/openapi.yaml > static/api/docs/v4/openapi.yaml
18
+ if [ -f " $SPEC_FILE " ]; then
19
+ echo
20
+ echo " ${BLUE} Using local spec file at: ${SPEC_FILE}${NC} "
21
+ cat $SPEC_FILE > static/api/docs/v4/openapi.yaml;
22
+ else
23
+ echo
24
+ echo " ${BLUE} Fetching API specs${NC} "
25
+ cd -
26
+ curl https://raw.githubusercontent.com/linode/linode-api-docs/master/openapi.yaml > static/api/docs/v4/openapi.yaml;
27
+ fi
28
+
16
29
17
30
echo
18
31
echo " ${BLUE} Removing faulty data${NC} "
Original file line number Diff line number Diff line change 50
50
],
51
51
"scripts" : {
52
52
"build" : " ./getDependencies.sh && gatsby build && node search/buildIndex.js" ,
53
- "develop" : " ./getDependenciesDevelop .sh && gatsby develop " ,
53
+ "develop" : " ./develop .sh" ,
54
54
"start" : " npm run develop" ,
55
55
"serve" : " gatsby serve" ,
56
56
"test" : " echo \" Write tests! -> https://gatsby.app/unit-testing\" "
You can’t perform that action at this time.
0 commit comments