Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 33 additions & 22 deletions scripts/generate-documentation.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
. $(dirname $0)/env.sh

# Temporary change to delete the Build Status image markdown from the README (image md not supported by dartdoc-viewer)
cp README.md README-orig.md
cat README-orig.md | sed "1s/^AngularDart.*/AngularDart/" > README.md

# Dart doc can not be run from the same directory as dartdoc-viewer
# see: https://code.google.com/p/dart/issues/detail?id=17231
Expand All @@ -13,36 +16,44 @@ echo "Generating documentation"
--exclude-lib=js,metadata,meta,mirrors,intl,number_symbols,number_symbol_data,intl_helpers,date_format_internal,date_symbols,angular.util \
--no-include-sdk \
--package-root=../packages/ \
../lib/angular.dart \
../lib/animate/module.dart \
../lib/utils.dart \
../lib/change_detection/watch_group.dart \
../lib/core/module.dart \
../lib/core_dom/module.dart \
../lib/filter/module.dart \
../lib/directive/module.dart \
../lib/mock/module.dart \
../lib/perf/module.dart \
../lib/playback/playback_data.dart \
../lib/playback/playback_http.dart \
../lib/routing/module.dart \
../lib/tools/common.dart \
../lib/tools/expression_extractor.dart \
../lib/tools/io.dart \
../lib/tools/io_impl.dart \
../lib/tools/source_crawler_impl.dart \
../lib/tools/source_metadata_extractor.dart \
../lib/tools/template_cache_annotation.dart \
../lib/tools/template_cache_generator.dart
angular.dart \
animate/module.dart \
utils.dart \
change_detection/watch_group.dart \
core/module.dart \
core_dom/module.dart \
filter/module.dart \
directive/module.dart \
mock/module.dart \
perf/module.dart \
playback/playback_data.dart \
playback/playback_http.dart \
routing/module.dart \
tools/common.dart \
tools/expression_extractor.dart \
tools/io.dart \
tools/io_impl.dart \
tools/source_crawler_impl.dart \
tools/source_metadata_extractor.dart \
tools/template_cache_annotation.dart \
tools/template_cache_generator.dart

cd ..

DOCVIEWER_DIR="dartdoc-viewer";
if [ ! -d "$DOCVIEWER_DIR" ]; then
git clone https://github.com/angular/dartdoc-viewer.git -b angular-skin $DOCVIEWER_DIR
git clone https://github.com/angular/dartdoc-viewer.git -b angular-skin $DOCVIEWER_DIR
else
(cd $DOCVIEWER_DIR; git pull origin angular-skin)
fi;

# Create a version file from the current build version
head CHANGELOG.md | awk 'NR==2' | sed 's/^# //' > docs/VERSION

rm -rf $DOCVIEWER_DIR/client/web/docs/
mv docs/ $DOCVIEWER_DIR/client/web/docs/
(cd $DOCVIEWER_DIR/client; pub build)

# Revert the temp copy of the README.md file
mv README-orig.md README.md