Skip to content

Commit 0603e62

Browse files
chore: fix docs build on owlbot.py (#888)
* chore: fix docs build on owlbot.py * 🦉 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>
1 parent 3dbf84b commit 0603e62

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.kokoro/publish-docs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@ python3.10 -m docuploader create-metadata \
5858

5959
cat docs.metadata
6060

61+
# Replace toc.yml template file
62+
mv docs/templates/toc.yml docs/_build/html/docfx_yaml/toc.yml
63+
6164
# upload docs
6265
python3.10 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"

owlbot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@
112112
re.escape("# upload docs")
113113
+ "\n"
114114
+ re.escape(
115-
'python3 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"'
115+
'python3.10 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"'
116116
)
117117
),
118118
(
119119
"# Replace toc.yml template file\n"
120120
+ "mv docs/templates/toc.yml docs/_build/html/docfx_yaml/toc.yml\n\n"
121121
+ "# upload docs\n"
122-
+ 'python3 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"'
122+
+ 'python3.10 -m docuploader upload docs/_build/html/docfx_yaml --metadata-file docs.metadata --destination-prefix docfx --staging-bucket "${V2_STAGING_BUCKET}"'
123123
),
124124
)
125125

0 commit comments

Comments
 (0)