Skip to content

Commit ee7506d

Browse files
authored
Revert "feat(python-library): changes to docs job (#700)" (#704)
This reverts commit f07cb44.
1 parent f07cb44 commit ee7506d

File tree

10 files changed

+2
-770
lines changed

10 files changed

+2
-770
lines changed

synthtool/gcp/templates/python_library/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ pip-log.txt
4646
# Built documentation
4747
docs/_build
4848
bigquery/docs/generated
49-
docs.metadata
5049

5150
# Virtual environment
5251
env/
@@ -58,4 +57,4 @@ system_tests/local_test_setup
5857

5958
# Make sure a generated file isn't accidentally committed.
6059
pylintrc
61-
pylintrc.test
60+
pylintrc.test

synthtool/gcp/templates/python_library/.kokoro/docker/docs/Dockerfile

Lines changed: 0 additions & 98 deletions
This file was deleted.

synthtool/gcp/templates/python_library/.kokoro/docker/docs/fetch_gpg_keys.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,6 @@ env_vars: {
2828
value: "docs-staging"
2929
}
3030

31-
env_vars: {
32-
key: "V2_STAGING_BUCKET"
33-
value: "docs-staging-v2-staging"
34-
}
35-
36-
# It will upload the docker image after successful builds.
37-
env_vars: {
38-
key: "TRAMPOLINE_IMAGE_UPLOAD"
39-
value: "true"
40-
}
41-
42-
# It will always build the docker image.
43-
env_vars: {
44-
key: "TRAMPOLINE_DOCKERFILE"
45-
value: ".kokoro/docker/docs/Dockerfile"
46-
}
47-
4831
# Fetch the token needed for reporting release status to GitHub
4932
before_action {
5033
fetch_keystore {

synthtool/gcp/templates/python_library/.kokoro/docs/docs-presubmit.cfg

Lines changed: 0 additions & 17 deletions
This file was deleted.

synthtool/gcp/templates/python_library/.kokoro/publish-docs.sh

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,4 @@ python3 -m docuploader create-metadata \
5252
cat docs.metadata
5353

5454
# upload docs
55-
python3 -m docuploader upload docs/_build/html --metadata-file docs.metadata --staging-bucket "${STAGING_BUCKET}"
56-
57-
58-
# docfx yaml files
59-
nox -s docfx
60-
61-
# create metadata.
62-
python3 -m docuploader create-metadata \
63-
--name=$(jq --raw-output '.name // empty' .repo-metadata.json) \
64-
--version=$(python3 setup.py --version) \
65-
--language=$(jq --raw-output '.language // empty' .repo-metadata.json) \
66-
--distribution-name=$(python3 setup.py --name) \
67-
--product-page=$(jq --raw-output '.product_documentation // empty' .repo-metadata.json) \
68-
--github-repository=$(jq --raw-output '.repo // empty' .repo-metadata.json) \
69-
--issue-tracker=$(jq --raw-output '.issue_tracker // empty' .repo-metadata.json) \
70-
--serving-path="/python/docs/reference/$(jq --raw-output '.name // empty' .repo-metadata.json)/$(jq --raw-output '.distribution_name // empty' .repo-metadata.json)/latest"
71-
72-
cat docs.metadata
73-
74-
# upload docs
75-
python3 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"
55+
python3 -m docuploader upload docs/_build/html --metadata-file docs.metadata --staging-bucket docs-staging

0 commit comments

Comments
 (0)