Skip to content

Commit b11b3a1

Browse files
authored
Replacing references to stable/ docs with latest/. (googleapis#4638)
Also fixing some bad links in the 3 newest packages. (This is only for **our** docs, projects that don't secretly contain 15+ subprojects typically have useful `stable/` docs.)
1 parent 4e69087 commit b11b3a1

File tree

7 files changed

+18
-30
lines changed

7 files changed

+18
-30
lines changed

bigquery_datatransfer/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ scheduled, managed basis.
99

1010
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
1111
.. _BigQuery Data Transfer API: https://cloud.google.com/bigquerydatatransfer
12-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/bigquerydatatransfer-usage
12+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/bigquery_datatransfer/index.html
1313
.. _Product Documentation: https://cloud.google.com/bigquerydatatransfer
1414

1515
Quick Start
@@ -23,7 +23,7 @@ In order to use this library, you first need to go through the following steps:
2323

2424
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2525
.. _Enable the BigQuery Data Transfer API.: https://cloud.google.com/bigquerydatatransfer
26-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/google-cloud-auth
26+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2727

2828
Installation
2929
~~~~~~~~~~~~
@@ -97,4 +97,4 @@ Next Steps
9797
APIs that we cover.
9898

9999
.. _BigQuery Data Transfer API Product documentation: https://cloud.google.com/bigquerydatatransfer
100-
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
100+
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst

bigquery_datatransfer/docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ scheduled, managed basis.
99

1010
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
1111
.. _BigQuery Data Transfer API: https://cloud.google.com/bigquerydatatransfer
12-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/bigquerydatatransfer-usage
12+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/bigquery_datatransfer/index.html
1313
.. _Product Documentation: https://cloud.google.com/bigquerydatatransfer
1414

1515
Quick Start
@@ -23,7 +23,7 @@ In order to use this library, you first need to go through the following steps:
2323

2424
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2525
.. _Enable the BigQuery Data Transfer API.: https://cloud.google.com/bigquerydatatransfer
26-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/google-cloud-auth
26+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2727

2828
Installation
2929
~~~~~~~~~~~~

container/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ based applications, powered by the open source Kubernetes technology.
99

1010
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
1111
.. _Google Container Engine API: https://cloud.google.com/container
12-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/container-usage
12+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/container/index.html
1313
.. _Product Documentation: https://cloud.google.com/container
1414

1515
Quick Start
@@ -23,7 +23,7 @@ In order to use this library, you first need to go through the following steps:
2323

2424
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2525
.. _Enable the Google Container Engine API.: https://cloud.google.com/container
26-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/google-cloud-auth
26+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2727

2828
Installation
2929
~~~~~~~~~~~~
@@ -88,4 +88,4 @@ Next Steps
8888
APIs that we cover.
8989

9090
.. _Google Container Engine API Product documentation: https://cloud.google.com/container
91-
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
91+
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst

container/docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ based applications, powered by the open source Kubernetes technology.
99

1010
.. _Beta: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
1111
.. _Google Container Engine API: https://cloud.google.com/container
12-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/container-usage
12+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/container/index.html
1313
.. _Product Documentation: https://cloud.google.com/container
1414

1515
Quick Start
@@ -23,7 +23,7 @@ In order to use this library, you first need to go through the following steps:
2323

2424
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2525
.. _Enable the Google Container Engine API.: https://cloud.google.com/container
26-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/google-cloud-auth
26+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2727

2828
Installation
2929
~~~~~~~~~~~~

dataproc/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Python Client for Google Cloud Dataproc API (`Alpha`_)
88

99
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
1010
.. _Google Cloud Dataproc API: https://cloud.google.com/dataproc
11-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/dataproc/usage.html
11+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/dataproc/usage.html
1212
.. _Product Documentation: https://cloud.google.com/dataproc
1313

1414
Quick Start
@@ -24,7 +24,7 @@ In order to use this library, you first need to go through the following steps:
2424
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2525
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
2626
.. _Enable the Google Cloud Dataproc API.: https://cloud.google.com/dataproc
27-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html
27+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2828

2929
Installation
3030
~~~~~~~~~~~~
@@ -99,4 +99,4 @@ Next Steps
9999
APIs that we cover.
100100

101101
.. _Google Cloud Dataproc API Product documentation: https://cloud.google.com/dataproc
102-
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
102+
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst

dataproc/docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Python Client for Google Cloud Dataproc API (`Alpha`_)
88

99
.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
1010
.. _Google Cloud Dataproc API: https://cloud.google.com/dataproc
11-
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/stable/dataproc/usage.html
11+
.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/dataproc/usage.html
1212
.. _Product Documentation: https://cloud.google.com/dataproc
1313

1414
Quick Start
@@ -24,7 +24,7 @@ In order to use this library, you first need to go through the following steps:
2424
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2525
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
2626
.. _Enable the Google Cloud Dataproc API.: https://cloud.google.com/dataproc
27-
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html
27+
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2828

2929
Installation
3030
~~~~~~~~~~~~
@@ -107,4 +107,4 @@ Api Reference
107107
:maxdepth: 2
108108

109109
gapic/v1/api
110-
gapic/v1/types
110+
gapic/v1/types

test_utils/scripts/update_docs.sh

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,8 @@ CURRENT_VERSION=$(python ${DIR}/get_version.py)
6464

6565
# Update gh-pages with the created docs.
6666
cd ${GH_PAGES_DIR}
67-
if [[ -n "${CIRCLE_TAG}" ]]; then
68-
if [[ -d ${CURRENT_VERSION} ]]; then
69-
echo "The directory ${CURRENT_VERSION} already exists."
70-
exit 1
71-
fi
72-
git rm -fr stable/
73-
74-
# Put the new release in stable and with the actual version.
75-
cp -R ../docs/_build/html/ stable/
76-
cp -R ../docs/_build/html/ "${CURRENT_VERSION}/"
77-
else
78-
git rm -fr latest/
79-
cp -R ../docs/_build/html/ latest/
80-
fi
67+
git rm -fr latest/
68+
cp -R ../docs/_build/html/ latest/
8169

8270
# Update the files push to gh-pages.
8371
git add .

0 commit comments

Comments
 (0)