File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ BLUE=' \033[0;34m'
2
+ NC=' \033[0m' # No Color
3
+
4
+ echo
5
+ echo " ${BLUE} Fetching base theme${NC} "
6
+ if
7
+ cd linode-hugo-theme; then
8
+ git pull origin development; else
9
+ git clone https://github.com/linode/linode-hugo-theme.git;
10
+ fi
11
+
12
+ echo
13
+ echo " ${BLUE} Fetching API specs${NC} "
14
+ cd -
15
+ yes | cp -rf ../linode-api-docs/openapi.yaml static/api/docs/v4/openapi.yaml
16
+
17
+ echo
18
+ echo " ${BLUE} Removing faulty data${NC} "
19
+ sed -i.bak ' /backgroundColor:/d' static/api/docs/v4/openapi.yaml
20
+ rm static/api/docs/v4/openapi.yaml.bak
21
+
22
+ echo
23
+ echo " ${BLUE} Converting YAML to JSON${NC} "
24
+ ./node_modules/yamljs/bin/yaml2json static/api/docs/v4/openapi.yaml > static/api/docs/v4/spec.json
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" : " ./getDependencies .sh && gatsby develop" ,
53
+ "develop" : " ./getDependenciesDevelop .sh && gatsby develop" ,
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