This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
. $( dirname $0 ) /env.sh
3
3
4
+ # Temporary change to delete the Build Status image markdown from the README (image md not supported by dartdoc-viewer)
5
+ cp README.md README-orig.md
6
+ cat README-orig.md | sed " 1s/^AngularDart.*/AngularDart/" > README.md
4
7
5
8
# Dart doc can not be run from the same directory as dartdoc-viewer
6
9
# see: https://code.google.com/p/dart/issues/detail?id=17231
@@ -39,10 +42,18 @@ cd ..
39
42
40
43
DOCVIEWER_DIR=" dartdoc-viewer" ;
41
44
if [ ! -d " $DOCVIEWER_DIR " ]; then
42
- git clone https://github.com/angular/dartdoc-viewer.git -b angular-skin $DOCVIEWER_DIR
45
+ git clone https://github.com/angular/dartdoc-viewer.git -b angular-skin $DOCVIEWER_DIR
46
+ else
47
+ (cd $DOCVIEWER_DIR ; git pull origin angular-skin)
43
48
fi ;
44
49
50
+ # Create a version file from the current build version
45
51
head CHANGELOG.md | awk ' NR==2' | sed ' s/^# //' > docs/VERSION
52
+
46
53
rm -rf $DOCVIEWER_DIR /client/web/docs/
47
54
mv docs/ $DOCVIEWER_DIR /client/web/docs/
48
55
(cd $DOCVIEWER_DIR /client; pub build)
56
+
57
+ # Revert the temp copy of the README.md file
58
+ mv README-orig.md README.md
59
+
You can’t perform that action at this time.
0 commit comments