diff --git a/docs/processors/index-page.js b/docs/processors/index-page.js index dc4dce6556..1cc4353711 100644 --- a/docs/processors/index-page.js +++ b/docs/processors/index-page.js @@ -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', diff --git a/scripts/site/publish.sh b/scripts/site/publish.sh index 515e5f4d35..8a918c947b 100755 --- a/scripts/site/publish.sh +++ b/scripts/site/publish.sh @@ -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