Skip to content

Commit af4f062

Browse files
authored
Merge pull request #85 from googleapis/modify-docs-build
update docs build to include publishing to gh-pages on tags.
2 parents 7a6539f + 6663b43 commit af4f062

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

noxfile.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,11 @@ def docs(session):
112112
session.install(".")
113113
# Building the docs.
114114
run_args = [
115-
"sphinx-build",
116-
"-b",
117-
"html",
118-
"-d",
119-
get_path("docs", "_build", "doctrees"),
120-
"docs",
121-
get_path("docs", "_build", "html"),
115+
"bash",
116+
"test_utils/test_utils/scripts/update_docs.sh",
122117
]
123118
session.run(*run_args)
124119

125-
126120
@nox.session(py=DEFAULT_INTERPRETER)
127121
def doctest(session):
128122
# Install all dependencies.

test_utils/test_utils/scripts/update_docs.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@
1616

1717
set -ev
1818

19-
GH_OWNER='GoogleCloudPlatform'
20-
GH_PROJECT_NAME='google-cloud-python'
19+
GH_OWNER='GoogleAPIs'
20+
GH_PROJECT_NAME='python-ndb'
2121

2222
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2323

2424
# Function to build the docs.
2525
function build_docs {
2626
rm -rf docs/_build/
27-
rm -rf docs/bigquery/generated
2827
# -W -> warnings as errors
2928
# -T -> show full traceback on exception
3029
# -N -> no color
3130
sphinx-build \
32-
-W -T -N \
31+
-T -N \
3332
-b html \
3433
-d docs/_build/doctrees \
3534
docs/ \

0 commit comments

Comments
 (0)