Skip to content

Commit

Permalink
Merge pull request #507 from david-mcmahon/remove-generate-docs
Browse files Browse the repository at this point in the history
Comment out generate-docs on new branches.
  • Loading branch information
david-mcmahon committed Jan 19, 2018
2 parents 0c7d961 + 5db9910 commit 5f8d34e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions anago
Original file line number Diff line number Diff line change
Expand Up @@ -609,17 +609,18 @@ prepare_tree () {
beta*) rev_openapi_versions $label || return 1 ;;
esac

# COMMENTING OUT FOR NOW AS THE WAY FORWARD IS NOT CLEAR
# generate docs on new branches (from master) only
# If the entirety of this session is based on a branch from master
# (PARENT_BRANCH), and this iteration of prepare_tree() is operating on
# the NON-master branch itself, versionize the docs
if [[ "$PARENT_BRANCH" == "master" && "$branch" != "master" ]]; then
logecho -n "Generating docs for ${RELEASE_VERSION[$label]}: "
logrun -s $TREE_ROOT/hack/generate-docs.sh || return 1
logecho -n "Committing: "
logrun -s git commit -am \
"Generating docs for ${RELEASE_VERSION[$label]} on $branch."
fi
#if [[ "$PARENT_BRANCH" == "master" && "$branch" != "master" ]]; then
# logecho -n "Generating docs for ${RELEASE_VERSION[$label]}: "
# logrun -s $TREE_ROOT/hack/generate-docs.sh || return 1
# logecho -n "Committing: "
# logrun -s git commit -am \
# "Generating docs for ${RELEASE_VERSION[$label]} on $branch."
#fi

git_tag $label $branch
}
Expand Down

0 comments on commit 5f8d34e

Please sign in to comment.