diff --git a/.kokoro/docs/common.cfg b/.kokoro/docs/common.cfg index da9e047c..0a3c3c6a 100644 --- a/.kokoro/docs/common.cfg +++ b/.kokoro/docs/common.cfg @@ -29,6 +29,11 @@ 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" diff --git a/.kokoro/publish-docs.sh b/.kokoro/publish-docs.sh index a8c9b3c0..f15d94d9 100755 --- a/.kokoro/publish-docs.sh +++ b/.kokoro/publish-docs.sh @@ -62,4 +62,4 @@ python3 -m docuploader create-metadata \ cat docs.metadata # upload docs -python3 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${STAGING_BUCKET}" +python3 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}" diff --git a/.trampolinerc b/.trampolinerc index 65c35a60..995ee291 100644 --- a/.trampolinerc +++ b/.trampolinerc @@ -17,11 +17,13 @@ # 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" ) # Prevent unintentional override on the default image. diff --git a/docs/conf.py b/docs/conf.py index ebd435af..a4035399 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,6 +20,10 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath("..")) +# For plugins that can not read conf.py. +sys.path.insert(0, os.path.abspath(".")) + + __version__ = "" # -- General configuration ------------------------------------------------