File tree Expand file tree Collapse file tree 5 files changed +27
-9
lines changed Expand file tree Collapse file tree 5 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Navigating through the API docs
2
2
3
- These docs correspond to NPM released main line versions.
4
- Please see [ dev docs] ( ../develop/ ) for development versions.
5
-
6
3
The API docs cover three libraries:
7
4
8
5
- @stomp/stompjs
Original file line number Diff line number Diff line change 1
- BASE=` dirname $0 ` /consolidated
2
- BUNDLES=" stompjs rx-stomp ng2-stompjs"
1
+ export BASE=` dirname $0 ` /consolidated
2
+ export BUNDLES=" stompjs rx-stomp ng2-stompjs"
3
3
4
- DESTINATION=../api-docs/latest/
4
+ if [[ " $BRANCH " == " develop" ]]
5
+ then
6
+ export DESTINATION=../api-docs/develop/
7
+ export THEME=postmark
8
+ export MESSAGE=" These docs correspond to development versions. Please see [api-docs](../latest/) for NPM released versions."
9
+ else
10
+ export DESTINATION=../api-docs/latest/
11
+ export THEME=vagrant
12
+ export MESSAGE=" These docs correspond to NPM released main line versions. Please see [dev docs](../develop/) for development versions."
13
+ fi
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # usually will receive from calling script, assume develop otherwise
4
+ export BRANCH=${BRANCH:- $1 }
5
+ export BRANCH=${BRANCH:- develop}
6
+
3
7
source ` dirname $0 ` /config.sh
4
8
5
9
rm -rf $DESTINATION
6
10
7
11
cd $BASE /..
8
12
13
+ sed -e " 3i$MESSAGE \n" README-src.md > README.md
14
+
9
15
./node_modules/.bin/compodoc \
10
16
-p tsconfig.json \
11
17
-d $DESTINATION \
12
18
--disablePrivate --disableProtected --disableInternal --disableGraph \
13
- --theme vagrant --hideGenerator \
19
+ --theme $THEME --hideGenerator \
14
20
" $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # by default assume master branch
4
+ export BRANCH=${1:- master}
5
+
3
6
source ` dirname $0 ` /config.sh
4
7
5
8
rm -rf $BASE
@@ -9,9 +12,9 @@ cd $BASE
9
12
10
13
for bundle in $BUNDLES
11
14
do
12
- wget -O $bundle .zip https://github.com/stomp-js/$bundle /archive/master .zip
15
+ wget -O $bundle .zip https://github.com/stomp-js/$bundle /archive/$BRANCH .zip
13
16
unzip -o $bundle
14
- mv $bundle -master $bundle
17
+ mv $bundle -$BRANCH $bundle
15
18
done
16
19
17
20
cd -
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ # Generatinf locally, by default assume devlop
4
+ export BRANCH=${1:- develop}
5
+
3
6
source ` dirname $0 ` /config.sh
4
7
5
8
mkdir -p $BASE
You can’t perform that action at this time.
0 commit comments