Skip to content

Commit

Permalink
build: fix warnings in docgen (#711)
Browse files Browse the repository at this point in the history
Resolved all the outstanding warnings from sphinx.

Going forward, warnings will be treated as errors since the `-W` flag is being used with `sphinx-build`
  • Loading branch information
busunkim96 authored Feb 26, 2021
1 parent 333cb76 commit b1a12d2
Show file tree
Hide file tree
Showing 18 changed files with 120 additions and 272 deletions.
52 changes: 52 additions & 0 deletions .trampolinerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Template for .trampolinerc

# Add required env vars here.
required_envvars+=(
"STAGING_BUCKET"
"V2_STAGING_BUCKET"
)

# Add env vars which are passed down into the container here.
pass_down_envvars+=(
"STAGING_BUCKET"
"V2_STAGING_BUCKET"
"NOX_SESSION"
)

# Prevent unintentional override on the default image.
if [[ "${TRAMPOLINE_IMAGE_UPLOAD:-false}" == "true" ]] && \
[[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
echo "Please set TRAMPOLINE_IMAGE if you want to upload the Docker image."
exit 1
fi

# Define the default value if it makes sense.
if [[ -z "${TRAMPOLINE_IMAGE_UPLOAD:-}" ]]; then
TRAMPOLINE_IMAGE_UPLOAD=""
fi

if [[ -z "${TRAMPOLINE_IMAGE:-}" ]]; then
TRAMPOLINE_IMAGE=""
fi

if [[ -z "${TRAMPOLINE_DOCKERFILE:-}" ]]; then
TRAMPOLINE_DOCKERFILE=""
fi

if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
TRAMPOLINE_BUILD_FILE=""
fi
225 changes: 0 additions & 225 deletions docs/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
"python": ("https://docs.python.org/3.5", None),
"urllib3": ("https://urllib3.readthedocs.io/en/stable", None),
"requests": ("https://requests.kennethreitz.org/en/master/", None),
"requests-oauthlib": ("http://requests-oauthlib.readthedocs.io/en/stable", None),
"requests-oauthlib": ("https://requests-oauthlib.readthedocs.io/en/stable/", None),
}

# Autodoc config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
google.auth.jwt\_async module
=============================

.. automodule:: google.auth.jwt_async
.. automodule:: google.auth._jwt_async
:members:
:inherited-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/reference/google.auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Submodules
google.auth.identity_pool
google.auth.impersonated_credentials
google.auth.jwt
google.auth.jwt_async
google.auth._jwt_async
1 change: 0 additions & 1 deletion docs/user-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ A sample end-to-end flow using an ID Token against a Cloud Run endpoint maybe ::
.. _App Engine: https://cloud.google.com/appengine/
.. _Cloud Functions: https://cloud.google.com/functions/
.. _Cloud Run: https://cloud.google.com/run/
.. _Compute Engine: https://cloud.google.com/compute/
.. _Identity Aware Proxy: https://cloud.google.com/iap/
.. _Google OpenID Connect: https://developers.google.com/identity/protocols/OpenIDConnect
.. _Google ID Token: https://developers.google.com/identity/protocols/OpenIDConnect#validatinganidtoken
Expand Down
2 changes: 1 addition & 1 deletion google/auth/crypt/_python_rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def from_string(cls, public_key):
x509 public key certificate.
Returns:
Verifier: The constructed verifier.
google.auth.crypt._python_rsa.RSAVerifier: The constructed verifier.
Raises:
ValueError: If the public_key can't be parsed.
Expand Down
Loading

0 comments on commit b1a12d2

Please # to comment.