File tree 2 files changed +17
-10
lines changed
2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 29
29
"template" : " ./node_modules/clean-jsdoc-theme" ,
30
30
"theme_opts" : {
31
31
"default_theme" : " dark" ,
32
- "title" : " <img src='.. /.github/parse-server-logo.png' class='logo'/>" ,
32
+ "title" : " <img src='https://raw.githubusercontent.com/parse-community/parse-server/alpha /.github/parse-server-logo.png' class='logo'/>" ,
33
33
"create_style" : " header, .sidebar-section-title, .sidebar-title { color: #139cee !important } .logo { margin-left : 40px; margin-right: 40px }"
34
34
}
35
35
},
Original file line number Diff line number Diff line change 1
1
#! /bin/sh -e
2
2
set -x
3
+ # GITHUB_ACTIONS=true SOURCE_TAG=test ./release_docs.sh
4
+
3
5
if [ " ${GITHUB_ACTIONS} " = " " ];
4
6
then
5
7
echo " Cannot release docs without GITHUB_ACTIONS set"
6
8
exit 0;
7
9
fi
10
+ if [ " ${SOURCE_TAG} " = " " ];
11
+ then
12
+ echo " Cannot release docs without SOURCE_TAG set"
13
+ exit 0;
14
+ fi
8
15
REPO=" https://github.com/parse-community/parse-server"
9
16
10
17
rm -rf docs
@@ -13,20 +20,20 @@ cd docs
13
20
git pull origin gh-pages
14
21
cd ..
15
22
16
- DEST=" master"
23
+ RELEASE=" release"
24
+ VERSION=" ${SOURCE_TAG} "
17
25
18
- if [ " ${SOURCE_TAG} " != " " ];
19
- then
20
- DEST=" ${SOURCE_TAG} "
21
- # change the default page to the latest
22
- echo " <meta http-equiv='refresh' content='0; url=/parse-server/api/${DEST} '>" > " docs/api/index.html"
23
- fi
26
+ # change the default page to the latest
27
+ echo " <meta http-equiv='refresh' content='0; url=/parse-server/api/${VERSION} '>" > " docs/api/index.html"
24
28
25
29
npm run definitions
26
30
npm run docs
27
31
28
- mkdir -p " docs/api/${DEST} "
29
- cp -R out/* " docs/api/${DEST} "
32
+ mkdir -p " docs/api/${RELEASE} "
33
+ cp -R out/* " docs/api/${RELEASE} "
34
+
35
+ mkdir -p " docs/api/${VERSION} "
36
+ cp -R out/* " docs/api/${VERSION} "
30
37
31
38
# Copy other resources
32
39
RESOURCE_DIR=" .github"
You can’t perform that action at this time.
0 commit comments