Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 59e4808

Browse files
naomiblackmhevery
authored andcommitted
chore: move the README edit earlier and improve git fetch of docviewer
Closes #707
1 parent 8201f23 commit 59e4808

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/generate-documentation.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
. $(dirname $0)/env.sh
33

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
47

58
# Dart doc can not be run from the same directory as dartdoc-viewer
69
# see: https://code.google.com/p/dart/issues/detail?id=17231
@@ -39,10 +42,18 @@ cd ..
3942

4043
DOCVIEWER_DIR="dartdoc-viewer";
4144
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)
4348
fi;
4449

50+
# Create a version file from the current build version
4551
head CHANGELOG.md | awk 'NR==2' | sed 's/^# //' > docs/VERSION
52+
4653
rm -rf $DOCVIEWER_DIR/client/web/docs/
4754
mv docs/ $DOCVIEWER_DIR/client/web/docs/
4855
(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+

0 commit comments

Comments
 (0)