Skip to content

Commit 1e8f514

Browse files
committed
chore(travis): enable docs task
1 parent 885f32a commit 1e8f514

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

docs/processors/index-page.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ module.exports = {
1313
contentsFolder = config.get('rendering.contentsFolder');
1414
},
1515
process: function(docs) {
16+
docs.push({
17+
docType: 'index-page',
18+
id: 'index-page',
19+
currentVersion: currentVersion,
20+
template: 'index.template.html',
21+
outputPath: contentsFolder + '/api/index.md'
22+
});
1623
docs.push({
1724
docType: 'index-page',
1825
id: 'index-page',

scripts/site/publish.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,23 @@ function docs {
5353
echo "#####################################"
5454
echo "## Updating docs for $VERSION_NAME ##"
5555
echo "#####################################"
56-
# cd $PROJECT_DIR
57-
# gulp docs
56+
cd $PROJECT_DIR
57+
gulp docs --doc-version="$VERSION_NAME"
5858

59-
# cd $IONIC_SITE_DIR
59+
cd $IONIC_SITE_DIR
6060

61-
# CHANGES=$(git status --porcelain)
61+
CHANGES=$(git status --porcelain)
6262

63-
# # if no changes, don't commit
64-
# if [[ "$CHANGES" == "" ]]; then
65-
# echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
66-
# else
67-
# git add -A
68-
# git commit -am "docs: update for $VERSION_NAME"
69-
# git push -q origin gh-pages
63+
# if no changes, don't commit
64+
if [[ "$CHANGES" == "" ]]; then
65+
echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
66+
else
67+
git add -A
68+
git commit -am "docs: update for $VERSION_NAME"
69+
git push -q origin gh-pages
7070

71-
# echo "-- Updated docs for $VERSION_NAME succesfully!"
72-
# fi
71+
echo "-- Updated docs for $VERSION_NAME succesfully!"
72+
fi
7373
}
7474

7575
source $(dirname $0)/../utils.inc

0 commit comments

Comments
 (0)