Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 877fabc

Browse files
authored
chore: update Noxfile and fix codeblock typo (#224)
1 parent 1fbee03 commit 877fabc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

google/api_core/path_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _expand_variable_match(positional_vars, named_vars, match):
104104
def expand(tmpl, *args, **kwargs):
105105
"""Expand a path template with the given variables.
106106
107-
..code-block:: python
107+
.. code-block:: python
108108
109109
>>> expand('users/*/messages/*', 'me', '123')
110110
users/me/messages/123

noxfile.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ def cover(session):
159159
session.run("coverage", "erase")
160160

161161

162-
@nox.session(python="3.7")
162+
@nox.session(python="3.8")
163163
def docs(session):
164164
"""Build the docs for this library."""
165165

166166
session.install(".", "grpcio >= 1.8.2", "grpcio-gcp >= 0.2.2")
167167
session.install("-e", ".")
168-
session.install("sphinx < 3.0", "alabaster", "recommonmark")
168+
session.install("sphinx==4.0.1", "alabaster", "recommonmark")
169169

170170
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
171171
session.run(
@@ -182,14 +182,14 @@ def docs(session):
182182
)
183183

184184

185-
@nox.session(python="3.7")
185+
@nox.session(python="3.8")
186186
def docfx(session):
187187
"""Build the docfx yaml files for this library."""
188188

189189
session.install("-e", ".")
190-
# sphinx-docfx-yaml supports up to sphinx version 1.5.5.
191-
# https://github.com/docascode/sphinx-docfx-yaml/issues/97
192-
session.install("sphinx==1.5.5", "alabaster", "recommonmark", "sphinx-docfx-yaml")
190+
session.install(
191+
"sphinx==4.0.1", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml"
192+
)
193193

194194
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
195195
session.run(

0 commit comments

Comments
 (0)