From 561f9baafbfaa4ee48cd5cf95420689684c2bdfc Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 12 Nov 2019 09:44:31 -0800 Subject: [PATCH] docs: fix link to client lib docs (#9638) --- cloudbuild/README.rst | 2 +- cloudbuild/synth.metadata | 17 +++++------------ cloudbuild/synth.py | 21 ++++----------------- 3 files changed, 10 insertions(+), 30 deletions(-) diff --git a/cloudbuild/README.rst b/cloudbuild/README.rst index da8f93730a63..79c1733667d7 100644 --- a/cloudbuild/README.rst +++ b/cloudbuild/README.rst @@ -8,7 +8,7 @@ Python Client for Cloud Build API (`Alpha`_) .. _Alpha: https://github.com/googleapis/google-cloud-python/blob/master/README.rst .. _Cloud Build API: https://cloud.google.com/cloud-build -.. _Client Library Documentation: https://googleapis.github.io/google-cloud-python/latest/cloudbuild/usage.html +.. _Client Library Documentation: https://googleapis.dev/python/cloudbuild/latest .. _Product Documentation: https://cloud.google.com/cloud-build Quick Start diff --git a/cloudbuild/synth.metadata b/cloudbuild/synth.metadata index e00caa5343ef..0649e37e7cce 100644 --- a/cloudbuild/synth.metadata +++ b/cloudbuild/synth.metadata @@ -1,26 +1,19 @@ { - "updateTime": "2019-10-22T20:39:41.016824Z", + "updateTime": "2019-11-07T22:07:36.473613Z", "sources": [ { "generator": { "name": "artman", - "version": "0.40.2", - "dockerImage": "googleapis/artman@sha256:3b8f7d9b4c206843ce08053474f5c64ae4d388ff7d995e68b59fb65edf73eeb9" + "version": "0.41.0", + "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a9589347c884dd62c45b5852c1b86ff346bf98dc", - "internalRef": "276110444" - } - }, - { - "template": { - "name": "python_library", - "origin": "synthtool.gcp", - "version": "0.0.0+dev" + "sha": "0ed34e9fdf601dfc37eb24c40e17495b86771ff4", + "internalRef": "279147036" } } ], diff --git a/cloudbuild/synth.py b/cloudbuild/synth.py index d1760a0c46a3..d9a097213f3e 100644 --- a/cloudbuild/synth.py +++ b/cloudbuild/synth.py @@ -39,6 +39,7 @@ 'nox*.py', 'setup.py', 'setup.cfg', + 'README.rst' '**/*.proto' 'google/cloud/devtools/__init__.py' # declare this as a namespace package ], @@ -57,25 +58,11 @@ # Rename package to `google-cloud-build` s.replace( - ["**/*.rst", "**/*.py", "**/*.md"], - "google-cloud-build", + ["**/*.rst", "*/**/*.py", "**/*.md"], + "google-cloud-cloudbuild", "google-cloud-build" ) -# Fix reference to product documentation -s.replace( - 'README.rst', - 'https://cloud\.google\.com/cloudbuild', - 'https://cloud.google.com/cloud-build' -) - -# Fix link to auth -s.replace( - 'README.rst', - 'https://googleapis\.github\.io/google-cloud-python/latest/core/auth\.html', - 'https://googleapis.dev/python/google-api-core/latest/auth.html' -) - # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- @@ -84,4 +71,4 @@ templated_files = common.py_library(unit_cov_level=65, cov_level=65) s.move(templated_files) -s.shell.run(["nox", "-s", "blacken"], hide_output=False) +s.shell.run(["nox", "-s", "blacken"], hide_output=False) \ No newline at end of file