Skip to content

Commit

Permalink
Fix the docs. (#3226)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer authored Mar 28, 2017
1 parent 3a943fd commit b01e43a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 2 additions & 7 deletions test_utils/scripts/get_target_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,7 @@ def get_changed_packages(file_list):
return answer


def main():
"""Figure out what packages have changed."""
if __name__ == '__main__':
file_list = get_changed_files()
for package in sorted(get_changed_packages(file_list)):
print(package)


if __name__ == '__main__':
main()
print(package)
10 changes: 6 additions & 4 deletions test_utils/scripts/update_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ set -ev
GH_OWNER='GoogleCloudPlatform'
GH_PROJECT_NAME='google-cloud-python'

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Function to build the docs.
function build_docs {
rm -rf docs/_build/
Expand Down Expand Up @@ -53,10 +55,10 @@ else
SPHINX_RELEASE=$(git log -1 --pretty=%h) build_docs
fi

# Get the current version. Assumes the PWD is the root of the git repo.
# This is only likely to work from within nox, because the environment
# must be set up.
CURRENT_VERSION=$(python scripts/get_version.py)
# Get the current version.
# This is only likely to work from within nox, because the google-cloud
# package must be installed.
CURRENT_VERSION=$(python ${DIR}/get_version.py)

# Update gh-pages with the created docs.
cd ${GH_PAGES_DIR}
Expand Down

0 comments on commit b01e43a

Please sign in to comment.