blob: b4e073fb37ab242f135e5aa2fff061e6b4a42fe8 [file] [log] [blame]
Bu Sun Kimf706cfd2020-04-20 14:05:05 -07001# Copyright 2020 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15import synthtool as s
16from synthtool import gcp
Anthonios Partheniouaf918e82020-11-25 19:58:04 -050017
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070018
19common = gcp.CommonTemplates()
20
21# ----------------------------------------------------------------------------
22# Add templated files
23# ----------------------------------------------------------------------------
24templated_files = common.py_library()
25
26# Copy kokoro configs.
27# Docs are excluded as repo docs cannot currently be generated using sphinx.
28s.move(templated_files / '.kokoro', excludes=['**/docs/*', 'publish-docs.sh'])
29
30# Also move issue templates
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070031s.move(templated_files / '.github')
32
Anthonios Partheniouaf918e82020-11-25 19:58:04 -050033# ----------------------------------------------------------------------------
Anthonios Partheniouaf918e82020-11-25 19:58:04 -050034# Generate docs
35# ----------------------------------------------------------------------------
36s.shell.run(["nox", "-s", "docs"], hide_output=False)