Skip to content

Commit

Permalink
chore(python-library): use sphinx 1.5.5 for the docfx job (#753)
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.
  • Loading branch information
Takashi Matsuo committed Sep 10, 2020
1 parent d302f93 commit ffcee79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion synthtool/gcp/templates/python_library/docs/conf.py.j2
Expand Up @@ -29,7 +29,7 @@ __version__ = "{{ metadata['version'] }}"
# -- 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 synthtool/gcp/templates/python_library/noxfile.py.j2
Expand Up @@ -194,7 +194,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

0 comments on commit ffcee79

Please sign in to comment.