Skip to content

Commit

Permalink
build: fix docstring formatting (#9793)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored Nov 13, 2019
1 parent b088278 commit e9ca02a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 102 deletions.
2 changes: 1 addition & 1 deletion automl/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
"google-gax": ("https://gax-python.readthedocs.io/en/latest/", None),
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest", None),
"grpc": ("https://grpc.io/grpc/python/", None),
"requests": ("https://requests.kennethreitz.org/en/master/", None),
"requests": ("https://requests.readthedocs.org/en/latest", None),
"fastavro": ("https://fastavro.readthedocs.io/en/stable/", None),
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
}
Expand Down
97 changes: 2 additions & 95 deletions automl/google/cloud/automl_v1beta1/proto/io_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions automl/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-11-13T20:54:28.686825Z",
"updateTime": "2019-11-13T22:56:51.489853Z",
"sources": [
{
"generator": {
Expand All @@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "dec8fd8ea5dc464496606189ba4b8949188639c8",
"internalRef": "280225437"
"sha": "218164b3deba1075979c9dca5f71461379e42dd1",
"internalRef": "280279014"
}
},
{
Expand Down
5 changes: 2 additions & 3 deletions automl/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@
s.replace("google/cloud/**/io_pb2.py", r":raw-latex:`\\t `", r"\\\\t")

# Remove html bits that can't be rendered correctly
s.replace("google/cloud/**/io_pb2.py",
s.replace("google/cloud/automl_v1/**/io_pb2.py",
r""".. raw:: html.+?
\</.+?\>""",
r"", flags=re.DOTALL)

# Remove raw-latex wrapping newline
s.replace("google/cloud/**/io_pb2.py",
s.replace("google/cloud/automl_v1/**/io_pb2.py",
r""":raw-latex:`\\n`""",
r"``\\\\n``")

Expand All @@ -126,7 +126,6 @@
r"\}\\n",
r"}\\\\n")


# ----------------------------------------------------------------------------
# Add templated files
# ----------------------------------------------------------------------------
Expand Down

0 comments on commit e9ca02a

Please sign in to comment.