Skip to content

Commit 344e8a3

Browse files
yoshi-automationbusunkim96
authored andcommitted
Add nox session 'docs' (via synth). (#7747)
1 parent fdbab92 commit 344e8a3

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

packages/google-cloud-websecurityscanner/noxfile.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,21 @@ def cover(session):
138138
session.run("coverage", "report", "--show-missing", "--fail-under=100")
139139

140140
session.run("coverage", "erase")
141+
142+
@nox.session(python="3.7")
143+
def docs(session):
144+
"""Build the docs for this library."""
145+
146+
session.install('sphinx', 'alabaster', 'recommonmark')
147+
148+
shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
149+
session.run(
150+
'sphinx-build',
151+
'-W', # warnings as errors
152+
'-T', # show full traceback on exception
153+
'-N', # no colors
154+
'-b', 'html',
155+
'-d', os.path.join('docs', '_build', 'doctrees', ''),
156+
os.path.join('docs', ''),
157+
os.path.join('docs', '_build', 'html', ''),
158+
)

packages/google-cloud-websecurityscanner/synth.metadata

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"updateTime": "2019-03-28T12:31:49.479005Z",
2+
"updateTime": "2019-04-18T12:37:39.742265Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.20",
8-
"dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e"
7+
"version": "0.16.25",
8+
"dockerImage": "googleapis/artman@sha256:d9597f983d1d4e61272c63cb97b7d8f8234da9999526c35d357de3d781f0ec1b"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "6a84b3267b0a95e922608b9891219075047eee29",
16-
"internalRef": "240640999"
15+
"sha": "d35ca3509160f09d3b0cc5360531751d95f3e292",
16+
"internalRef": "244086609"
1717
}
1818
},
1919
{
2020
"template": {
2121
"name": "python_library",
2222
"origin": "synthtool.gcp",
23-
"version": "2019.2.26"
23+
"version": "2019.4.10"
2424
}
2525
}
2626
],

0 commit comments

Comments
 (0)