Skip to content

Commit

Permalink
chore: update template to enable docs generation (#63)
Browse files Browse the repository at this point in the history
* chore: update template to enable docs generation

* chore: remove unnecessary lines

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
dandhlee and gcf-owl-bot[bot] authored Nov 22, 2023
1 parent 980a08d commit 6e70bcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ env_vars: {

env_vars: {
key: "V2_STAGING_BUCKET"
# Push non-cloud library docs to `docs-staging-v2-staging` instead of the
# Cloud RAD bucket `docs-staging-v2`
value: "docs-staging-v2-staging"
# Allow publishing docs for this library.
value: "docs-staging-v2"
}

# It will upload the docker image after successful builds.
Expand Down
9 changes: 9 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@

templated_files = gcp.CommonTemplates().py_library()
s.move(templated_files / ".kokoro")
s.replace(
".kokoro/docs/common.cfg",
"""# Push non-cloud library docs to `docs-staging-v2-staging` instead of the
# Cloud RAD bucket `docs-staging-v2`
value: \"docs-staging-v2-staging\"""",
"""# Allow publishing docs for this library.
value: \"docs-staging-v2\"""",
)

s.move(templated_files / "docs", excludes=["multiprocessing.rst"])
s.move(templated_files / "LICENSE")
s.move(templated_files / "CONTRIBUTING.rst")
Expand Down

0 comments on commit 6e70bcd

Please sign in to comment.