-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Add API reference docs * update header & pyproject --------- Co-authored-by: Averi Kitsch <akitsch@google.com>
- Loading branch information
1 parent
4307257
commit f40efc7
Showing
20 changed files
with
968 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
name: docs | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
- name: Install nox | ||
run: | | ||
python -m pip install --upgrade setuptools pip wheel | ||
python -m pip install nox | ||
- name: Run docs | ||
run: | | ||
nox -s docs | ||
docfx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install nox | ||
run: | | ||
python -m pip install --upgrade setuptools pip wheel | ||
python -m pip install nox | ||
- name: Run docfx | ||
run: | | ||
nox -s docfx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.11 | ||
# by the following command: | ||
# | ||
# pip-compile --allow-unsafe --generate-hashes requirements.in | ||
# | ||
argcomplete==3.3.0 \ | ||
--hash=sha256:c168c3723482c031df3c207d4ba8fa702717ccb9fc0bfe4117166c1f537b4a54 \ | ||
--hash=sha256:fd03ff4a5b9e6580569d34b273f741e85cd9e072f3feeeee3eba4891c70eda62 | ||
# via nox | ||
colorlog==6.8.2 \ | ||
--hash=sha256:3e3e079a41feb5a1b64f978b5ea4f46040a94f11f0e8bbb8261e3dbbeca64d44 \ | ||
--hash=sha256:4dcbb62368e2800cb3c5abd348da7e53f6c362dda502ec27c560b2e58a66bd33 | ||
# via nox | ||
distlib==0.3.8 \ | ||
--hash=sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784 \ | ||
--hash=sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64 | ||
# via virtualenv | ||
filelock==3.14.0 \ | ||
--hash=sha256:43339835842f110ca7ae60f1e1c160714c5a6afd15a2873419ab185334975c0f \ | ||
--hash=sha256:6ea72da3be9b8c82afd3edcf99f2fffbb5076335a5ae4d03248bb5b6c3eae78a | ||
# via virtualenv | ||
nox==2024.4.15 \ | ||
--hash=sha256:6492236efa15a460ecb98e7b67562a28b70da006ab0be164e8821177577c0565 \ | ||
--hash=sha256:ecf6700199cdfa9e5ea0a41ff5e6ef4641d09508eda6edb89d9987864115817f | ||
# via -r requirements.in | ||
packaging==24.0 \ | ||
--hash=sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5 \ | ||
--hash=sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9 | ||
# via nox | ||
platformdirs==4.2.1 \ | ||
--hash=sha256:031cd18d4ec63ec53e82dceaac0417d218a6863f7745dfcc9efe7793b7039bdf \ | ||
--hash=sha256:17d5a1161b3fd67b390023cb2d3b026bbd40abde6fdb052dfbd3a29c3ba22ee1 | ||
# via virtualenv | ||
virtualenv==20.26.1 \ | ||
--hash=sha256:604bfdceaeece392802e6ae48e69cec49168b9c5f4a44e483963f9242eb0e78b \ | ||
--hash=sha256:7aa9982a728ae5892558bff6a2839c00b9ed145523ece2274fad6f414690ae75 | ||
# via nox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright 2024 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. | ||
|
||
# Add required env vars here. | ||
required_envvars+=( | ||
) | ||
|
||
# Add env vars which are passed down into the container here. | ||
pass_down_envvars+=( | ||
"NOX_SESSION" | ||
############### | ||
# Docs builds | ||
############### | ||
"STAGING_BUCKET" | ||
"V2_STAGING_BUCKET" | ||
################## | ||
# Samples builds | ||
################## | ||
"INSTALL_LIBRARY_FROM_SOURCE" | ||
"RUN_TESTS_SESSION" | ||
"BUILD_SPECIFIC_GCLOUD_PROJECT" | ||
# Target directories. | ||
"RUN_TESTS_DIRS" | ||
# The nox session to run. | ||
"RUN_TESTS_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 |
Oops, something went wrong.