File tree Expand file tree Collapse file tree 5 files changed +37
-21
lines changed Expand file tree Collapse file tree 5 files changed +37
-21
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'json'
4
+
5
+ bundles = %w( stompjs rx-stomp )
6
+
7
+ parts = bundles . map do |l |
8
+ version = JSON . parse ( File . read ( "#{ ENV [ 'BASE' ] } /#{ l } /package.json" ) ) [ 'version' ]
9
+ "#{ l } @#{ version } "
10
+ end
11
+
12
+ puts parts . join ( ', ' )
Original file line number Diff line number Diff line change 1
1
export BASE=` dirname $0 ` /consolidated
2
2
export BUNDLES=" stompjs rx-stomp ng2-stompjs"
3
-
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 @@ -6,8 +6,21 @@ export BRANCH=${BRANCH:-develop}
6
6
7
7
source ` dirname $0 ` /config.sh
8
8
9
+ if [[ " $BRANCH " == " develop" ]]
10
+ then
11
+ export DESTINATION=../api-docs/develop/
12
+ export THEME=postmark
13
+ export MESSAGE=" These docs correspond to development versions. Please see [api-docs](../latest/) for NPM released versions."
14
+ else
15
+ export DESTINATION=../api-docs/latest/
16
+ export THEME=vagrant
17
+ export MESSAGE=" These docs correspond to NPM released main line versions. Please see [dev docs](../develop/) for development versions."
18
+ fi
19
+
20
+ APP_TITLE=` ./app-title.rb`
21
+
9
22
# Change to the Node application with Compodoc installed
10
- cd $BASE /..
23
+ cd " $BASE " /..
11
24
12
25
# It will be used by Jekyll pages to show current versions
13
26
` dirname $0 ` /pkg-versions.rb > ../_data/versions/$BRANCH .json
@@ -16,10 +29,11 @@ cd $BASE/..
16
29
sed -e " 3i$MESSAGE \n" README-src.md > README.md
17
30
18
31
# Clear the previously generated doc and regenerate
19
- rm -rf $DESTINATION
32
+ rm -rf " $DESTINATION "
20
33
./node_modules/.bin/compodoc \
21
34
-p tsconfig.json \
22
- -d $DESTINATION \
35
+ -d " $DESTINATION " \
23
36
--disablePrivate --disableProtected --disableInternal --disableGraph \
24
- --theme $THEME --hideGenerator \
37
+ --theme " $THEME " --hideGenerator \
38
+ -n " $APP_TITLE " \
25
39
" $@ "
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ export BRANCH=${1:-master}
5
5
6
6
source ` dirname $0 ` /config.sh
7
7
8
- rm -rf $BASE
9
- mkdir -p $BASE
10
- cd $BASE
8
+ rm -rf " $BASE "
9
+ mkdir -p " $BASE "
10
+ cd " $BASE "
11
11
12
12
13
13
for bundle in $BUNDLES
17
17
mv $bundle -$BRANCH $bundle
18
18
done
19
19
20
+ cd -
20
21
` dirname $0 ` /doc-gen.sh
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
3
+ # Generating locally, by default assume develop
4
4
export BRANCH=${1:- develop}
5
5
6
6
source ` dirname $0 ` /config.sh
7
7
8
- mkdir -p $BASE
9
- cd $BASE
8
+ mkdir -p " $BASE "
9
+ cd " $BASE "
10
10
11
11
for bundle in $BUNDLES
12
12
do
You can’t perform that action at this time.
0 commit comments