Skip to content

Commit 50c1d6d

Browse files
committed
Switching to readthedocs naming conventions.
We've noticed that "latest" is expected to be the TIP rather than the latest stable release. As described by READTHEDOCS: https://docs.readthedocs.org/en/latest/versions.html latest should indeed refer to TIP and instead of using latest for the last release, use "stable".
1 parent 2928bfc commit 50c1d6d

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Google Cloud Python Client
1111
- `API Documentation`_
1212

1313
.. _Homepage: https://googlecloudplatform.github.io/gcloud-python/
14-
.. _API Documentation: http://googlecloudplatform.github.io/gcloud-python/latest/
14+
.. _API Documentation: http://googlecloudplatform.github.io/gcloud-python/stable/
1515

1616
This client supports the following Google Cloud Platform services:
1717

@@ -55,7 +55,7 @@ consistency for all other queries.
5555
See the ``gcloud-python`` API `datastore documentation`_ to learn how to
5656
interact with the Cloud Datastore using this Client Library.
5757

58-
.. _datastore documentation: https://googlecloudplatform.github.io/gcloud-python/latest/datastore-api.html
58+
.. _datastore documentation: https://googlecloudplatform.github.io/gcloud-python/stable/datastore-api.html
5959

6060
See the `official Google Cloud Datastore documentation`_ for more details on how
6161
to activate Cloud Datastore for your project.
@@ -90,7 +90,7 @@ be used to distribute large data objects to users via direct download.
9090
See the ``gcloud-python`` API `storage documentation`_ to learn how to connect
9191
to Cloud Storage using this Client Library.
9292

93-
.. _storage documentation: https://googlecloudplatform.github.io/gcloud-python/latest/storage-api.html
93+
.. _storage documentation: https://googlecloudplatform.github.io/gcloud-python/stable/storage-api.html
9494

9595
You need to create a Google Cloud Storage bucket to use this client library.
9696
Follow along with the `official Google Cloud Storage documentation`_ to learn

scripts/update_docs.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ CURRENT_VERSION=$(.tox/docs/bin/python scripts/get_version.py)
4040
# Update gh-pages with the created docs.
4141
cd ${GH_PAGES_DIR}
4242
if [[ -z "${TRAVIS_TAG}" ]]; then
43-
git rm -fr master/
44-
cp -R ../docs/_build/html/ master/
43+
git rm -fr latest/
44+
cp -R ../docs/_build/html/ latest/
4545
else
4646
if [[ -d ${CURRENT_VERSION} ]]; then
4747
echo "The directory ${CURRENT_VERSION} already exists."
4848
exit 1
4949
fi
50-
git rm -fr latest/
51-
# Put the new release in latest and with the actual version.
52-
cp -R ../docs/_build/html/ latest/
50+
git rm -fr stable/
51+
# Put the new release in stable and with the actual version.
52+
cp -R ../docs/_build/html/ stable/
5353
cp -R ../docs/_build/html/ "${CURRENT_VERSION}/"
5454

5555
# Also update the versions file.

scripts/versions.html.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ https://googlecloudplatform.github.io/gcloud-node" title="Node.js docs page">
5959

6060
</section><!-- end of .content -->
6161
<nav class="side-nav">
62-
<ul><li><a href="latest/index.html">Documentation</a></li></ul>
62+
<ul><li><a href="stable/index.html">Documentation</a></li></ul>
6363
<ul class="simple">
6464
</ul>
6565

0 commit comments

Comments
 (0)