Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
docs: finishing touches for the cloudsite docs pipeline (#71)
Browse files Browse the repository at this point in the history
* add a new envvar for cloudsite docs pipeline
* modify sys.path for the new plugin
  • Loading branch information
Takashi Matsuo committed Jul 28, 2020
1 parent 55ff787 commit 6f5e64c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
2 changes: 2 additions & 0 deletions .trampolinerc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------------------------------------------
Expand Down

0 comments on commit 6f5e64c

Please sign in to comment.