Skip to content

Commit

Permalink
Revert "feat(python-library): changes to docs job (#700)" (#704)
Browse files Browse the repository at this point in the history
This reverts commit f07cb44.
  • Loading branch information
busunkim96 committed Jul 30, 2020
1 parent f07cb44 commit ee7506d
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 770 deletions.
3 changes: 1 addition & 2 deletions synthtool/gcp/templates/python_library/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ pip-log.txt
# Built documentation
docs/_build
bigquery/docs/generated
docs.metadata

# Virtual environment
env/
Expand All @@ -58,4 +57,4 @@ system_tests/local_test_setup

# Make sure a generated file isn't accidentally committed.
pylintrc
pylintrc.test
pylintrc.test

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions synthtool/gcp/templates/python_library/.kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ env_vars: {
value: "docs-staging"
}

env_vars: {
key: "V2_STAGING_BUCKET"
value: "docs-staging-v2-staging"
}

# It will upload the docker image after successful builds.
env_vars: {
key: "TRAMPOLINE_IMAGE_UPLOAD"
value: "true"
}

# It will always build the docker image.
env_vars: {
key: "TRAMPOLINE_DOCKERFILE"
value: ".kokoro/docker/docs/Dockerfile"
}

# Fetch the token needed for reporting release status to GitHub
before_action {
fetch_keystore {
Expand Down

This file was deleted.

22 changes: 1 addition & 21 deletions synthtool/gcp/templates/python_library/.kokoro/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,4 @@ python3 -m docuploader create-metadata \
cat docs.metadata

# upload docs
python3 -m docuploader upload docs/_build/html --metadata-file docs.metadata --staging-bucket "${STAGING_BUCKET}"


# docfx yaml files
nox -s docfx

# create metadata.
python3 -m docuploader create-metadata \
--name=$(jq --raw-output '.name // empty' .repo-metadata.json) \
--version=$(python3 setup.py --version) \
--language=$(jq --raw-output '.language // empty' .repo-metadata.json) \
--distribution-name=$(python3 setup.py --name) \
--product-page=$(jq --raw-output '.product_documentation // empty' .repo-metadata.json) \
--github-repository=$(jq --raw-output '.repo // empty' .repo-metadata.json) \
--issue-tracker=$(jq --raw-output '.issue_tracker // empty' .repo-metadata.json) \
--serving-path="/python/docs/reference/$(jq --raw-output '.name // empty' .repo-metadata.json)/$(jq --raw-output '.distribution_name // empty' .repo-metadata.json)/latest"

cat docs.metadata

# upload docs
python3 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"
python3 -m docuploader upload docs/_build/html --metadata-file docs.metadata --staging-bucket docs-staging
Loading

0 comments on commit ee7506d

Please sign in to comment.