File tree 2 files changed +11
-0
lines changed
templates/python_library/.kokoro/docs
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:
262
262
if Path ("docs/UPGRADING.md" ).exists ():
263
263
kwargs ["include_uprading_doc" ] = True
264
264
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
+
265
269
# Assume the python-docs-samples Dockerfile is used for samples by default
266
270
if "custom_samples_dockerfile" not in kwargs :
267
271
kwargs ["custom_samples_dockerfile" ] = False
Original file line number Diff line number Diff line change @@ -30,7 +30,14 @@ env_vars: {
30
30
31
31
env_vars: {
32
32
key: " V2_STAGING_BUCKET"
33
+ {%- if is_google_cloud_api %}
34
+ # Push google cloud library docs to the Cloud RAD bucket `docs-staging-v2`
33
35
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 -%}
34
41
}
35
42
36
43
# It will upload the docker image after successful builds.
You can’t perform that action at this time.
0 commit comments