chore(travis): enable docs task

This commit is contained in:
Andy Joslin
2014-03-25 14:08:38 -06:00
parent 885f32a42d
commit 1e8f51425a
2 changed files with 20 additions and 13 deletions

View File

@@ -13,6 +13,13 @@ module.exports = {
contentsFolder = config.get('rendering.contentsFolder');
},
process: function(docs) {
docs.push({
docType: 'index-page',
id: 'index-page',
currentVersion: currentVersion,
template: 'index.template.html',
outputPath: contentsFolder + '/api/index.md'
});
docs.push({
docType: 'index-page',
id: 'index-page',

View File

@@ -53,23 +53,23 @@ function docs {
echo "#####################################"
echo "## Updating docs for $VERSION_NAME ##"
echo "#####################################"
# cd $PROJECT_DIR
# gulp docs
cd $PROJECT_DIR
gulp docs --doc-version="$VERSION_NAME"
# cd $IONIC_SITE_DIR
cd $IONIC_SITE_DIR
# CHANGES=$(git status --porcelain)
CHANGES=$(git status --porcelain)
# # if no changes, don't commit
# if [[ "$CHANGES" == "" ]]; then
# echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
# else
# git add -A
# git commit -am "docs: update for $VERSION_NAME"
# git push -q origin gh-pages
# if no changes, don't commit
if [[ "$CHANGES" == "" ]]; then
echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
else
git add -A
git commit -am "docs: update for $VERSION_NAME"
git push -q origin gh-pages
# echo "-- Updated docs for $VERSION_NAME succesfully!"
# fi
echo "-- Updated docs for $VERSION_NAME succesfully!"
fi
}
source $(dirname $0)/../utils.inc