Skip to content

Commit

Permalink
chore(python-library): use sphinx 1.5.5 for the docfx job
Browse files Browse the repository at this point in the history
Originally tested at:
googleapis/python-texttospeech#89

This change will fix the missing docstring in the yaml files.

Source-Author: Takashi Matsuo <tmatsuo@google.com>
Source-Date: Thu Sep 10 04:12:14 2020 +0000
Source-Repo: googleapis/synthtool
Source-Sha: ffcee7952b74f647cbb3ef021d95422f10816fca
Source-Link: googleapis/synthtool@ffcee79
  • Loading branch information
yoshi-automation committed Sep 10, 2020
1 parent ee77fd6 commit 30e668a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -29,7 +29,7 @@
# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = "1.6.3"
needs_sphinx = "1.5.5"

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down
4 changes: 3 additions & 1 deletion noxfile.py
Expand Up @@ -171,7 +171,9 @@ def docfx(session):
"""Build the docfx yaml files for this library."""

session.install("-e", ".")
session.install("sphinx", "alabaster", "recommonmark", "sphinx-docfx-yaml")
# sphinx-docfx-yaml supports up to sphinx version 1.5.5.
# https://github.com/docascode/sphinx-docfx-yaml/issues/97
session.install("sphinx==1.5.5", "alabaster", "recommonmark", "sphinx-docfx-yaml")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Expand Up @@ -19,21 +19,21 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d302f93d7f47e2852e585ac35ab2d15585717ec0"
"sha": "ffcee7952b74f647cbb3ef021d95422f10816fca"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d302f93d7f47e2852e585ac35ab2d15585717ec0"
"sha": "ffcee7952b74f647cbb3ef021d95422f10816fca"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "d302f93d7f47e2852e585ac35ab2d15585717ec0"
"sha": "ffcee7952b74f647cbb3ef021d95422f10816fca"
}
}
],
Expand Down

0 comments on commit 30e668a

Please sign in to comment.