Skip to content

Commit 7fd61f8

Browse files
authored
chore(python): push cloud library docs to staging bucket for Cloud RAD (#1262)
1 parent cb27553 commit 7fd61f8

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

synthtool/gcp/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

synthtool/gcp/templates/python_library/.kokoro/docs/common.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ env_vars: {
3030

3131
env_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.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy