File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
templates/python_library/.kokoro/docs Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,10 @@ def py_library(self, **kwargs) -> Path:
262262 if Path ("docs/UPGRADING.md" ).exists ():
263263 kwargs ["include_uprading_doc" ] = True
264264
265+ # If the directory `google/cloud` exists, add kwargs to signal that the client library is for a Cloud API
266+ if Path ("google/cloud" ).exists ():
267+ kwargs ["is_google_cloud_api" ] = True
268+
265269 # Assume the python-docs-samples Dockerfile is used for samples by default
266270 if "custom_samples_dockerfile" not in kwargs :
267271 kwargs ["custom_samples_dockerfile" ] = False
Original file line number Diff line number Diff line change @@ -30,7 +30,14 @@ env_vars: {
3030
3131env_vars: {
3232 key: " V2_STAGING_BUCKET"
33+ {%- if is_google_cloud_api %}
34+ # Push google cloud library docs to the Cloud RAD bucket `docs-staging-v2`
3335 value: " docs-staging-v2"
36+ {% else %}
37+ # Push non-cloud library docs to `docs-staging-v2-staging` instead of the
38+ # Cloud RAD bucket `docs-staging-v2`
39+ value: " docs-staging-v2-staging"
40+ {% endif -%}
3441}
3542
3643# It will upload the docker image after successful builds.
You can’t perform that action at this time.
0 commit comments