Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nox session 'docs' to remaining manual clients. #8478

Merged
merged 5 commits into from
Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions bigtable/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from __future__ import absolute_import
import os
import shutil

import nox

Expand Down Expand Up @@ -135,6 +136,24 @@ def cover(session):

session.run("coverage", "erase")

@nox.session(python='3.6')
def docs(session):
"""Build the docs."""

session.install('sphinx', 'sphinx_rtd_theme')
session.install('-e', '.[pandas,fastavro]')

shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
session.run(
'sphinx-build',
'-W', # warnings as errors
'-T', # show full traceback on exception
'-N', # no colors
'-b', 'html',
'-d', os.path.join('docs', '_build', 'doctrees', ''),
os.path.join('docs', ''),
os.path.join('docs', '_build', 'html', ''),
)

@nox.session(python=['2.7', '3.7'])
def snippets(session):
Expand Down
20 changes: 20 additions & 0 deletions dns/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from __future__ import absolute_import

import os
import shutil

import nox

Expand Down Expand Up @@ -109,3 +110,22 @@ def cover(session):
session.install('coverage', 'pytest-cov')
session.run('coverage', 'report', '--show-missing', '--fail-under=100')
session.run('coverage', 'erase')

@nox.session(python='3.6')
def docs(session):
"""Build the docs."""

session.install('sphinx', 'sphinx_rtd_theme')
session.install('-e', '.[pandas,fastavro]')

shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
session.run(
'sphinx-build',
'-W', # warnings as errors
'-T', # show full traceback on exception
'-N', # no colors
'-b', 'html',
'-d', os.path.join('docs', '_build', 'doctrees', ''),
os.path.join('docs', ''),
os.path.join('docs', '_build', 'html', ''),
)
3 changes: 1 addition & 2 deletions iam/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
"release_level": "alpha",
"language": "python",
"repo": "googleapis/google-cloud-python",
"distribution_name": "google-cloud-iam",
"api_id": "iamcredentials.googleapis.com",
"distribution_name": "google-cloud-iam"
tseaver marked this conversation as resolved.
Show resolved Hide resolved
}
20 changes: 20 additions & 0 deletions logging/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from __future__ import absolute_import

import os
import shutil
import sys

import nox
Expand Down Expand Up @@ -165,3 +166,22 @@ def cover(session):
session.run("coverage", "report", "--show-missing", "--fail-under=100")

session.run("coverage", "erase")

@nox.session(python='3.6')
def docs(session):
"""Build the docs."""

session.install('sphinx', 'sphinx_rtd_theme')
session.install('-e', '.[pandas,fastavro]')

shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
session.run(
'sphinx-build',
'-W', # warnings as errors
'-T', # show full traceback on exception
'-N', # no colors
'-b', 'html',
'-d', os.path.join('docs', '_build', 'doctrees', ''),
os.path.join('docs', ''),
os.path.join('docs', '_build', 'html', ''),
)
20 changes: 20 additions & 0 deletions resource_manager/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from __future__ import absolute_import

import os
import shutil

import nox

Expand Down Expand Up @@ -107,3 +108,22 @@ def cover(session):
session.install('coverage', 'pytest-cov')
session.run('coverage', 'report', '--show-missing', '--fail-under=100')
session.run('coverage', 'erase')

@nox.session(python='3.6')
def docs(session):
"""Build the docs."""

session.install('sphinx', 'sphinx_rtd_theme')
session.install('-e', '.[pandas,fastavro]')

shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
session.run(
'sphinx-build',
'-W', # warnings as errors
'-T', # show full traceback on exception
'-N', # no colors
'-b', 'html',
'-d', os.path.join('docs', '_build', 'doctrees', ''),
os.path.join('docs', ''),
os.path.join('docs', '_build', 'html', ''),
)
19 changes: 19 additions & 0 deletions runtimeconfig/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,22 @@ def cover(session):
session.install('coverage', 'pytest-cov')
session.run('coverage', 'report', '--show-missing', '--fail-under=100')
session.run('coverage', 'erase')

@nox.session(python='3.6')
def docs(session):
"""Build the docs."""

session.install('sphinx', 'sphinx_rtd_theme')
session.install('-e', '.[pandas,fastavro]')

shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
session.run(
'sphinx-build',
'-W', # warnings as errors
'-T', # show full traceback on exception
'-N', # no colors
'-b', 'html',
'-d', os.path.join('docs', '_build', 'doctrees', ''),
os.path.join('docs', ''),
os.path.join('docs', '_build', 'html', ''),
)
20 changes: 20 additions & 0 deletions storage/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from __future__ import absolute_import

import os
import shutil

import nox

Expand Down Expand Up @@ -133,3 +134,22 @@ def blacken(session):
"tests",
"docs",
)

@nox.session(python='3.6')
def docs(session):
"""Build the docs."""

session.install('sphinx', 'sphinx_rtd_theme')
session.install('-e', '.[pandas,fastavro]')

shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True)
session.run(
'sphinx-build',
'-W', # warnings as errors
'-T', # show full traceback on exception
'-N', # no colors
'-b', 'html',
'-d', os.path.join('docs', '_build', 'doctrees', ''),
os.path.join('docs', ''),
os.path.join('docs', '_build', 'html', ''),
)