File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,17 @@ export BRANCH=${BRANCH:-develop}
6
6
7
7
source ` dirname $0 ` /config.sh
8
8
9
- rm -rf $DESTINATION
10
-
9
+ # Change to the Node application with Compodoc installed
11
10
cd $BASE /..
12
11
12
+ # It will be used by Jekyll pages to show current versions
13
+ ` dirname $0 ` /pkg-versions.rb > ../_data/versions/$BRANCH .json
14
+
15
+ # Adjust the README depending on the branch
13
16
sed -e " 3i$MESSAGE \n" README-src.md > README.md
14
17
18
+ # Clear the previously generated doc and regenerate
19
+ rm -rf $DESTINATION
15
20
./node_modules/.bin/compodoc \
16
21
-p tsconfig.json \
17
22
-d $DESTINATION \
Original file line number Diff line number Diff line change 17
17
mv $bundle -$BRANCH $bundle
18
18
done
19
19
20
- cd -
21
20
` dirname $0 ` /doc-gen.sh
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'json'
4
+
5
+ bundles = ENV [ 'BUNDLES' ]
6
+
7
+ versions = Hash [ ( bundles . split . map do |l |
8
+ version = JSON . parse ( File . read ( "#{ ENV [ 'BASE' ] } /#{ l } /package.json" ) ) [ 'version' ]
9
+ [ l , version ]
10
+ end ) ]
11
+
12
+ puts JSON . pretty_generate ( versions )
You can’t perform that action at this time.
0 commit comments