diff --git a/docs/conf.py b/docs/conf.py index b38bdd1ff..5f00efd57 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -100,6 +100,7 @@ "samples/AUTHORING_GUIDE.md", "samples/CONTRIBUTING.md", "samples/snippets/README.rst", + "bigquery_v2", # docs generated by the code generator ] # The reST default role (used for this markup: `text`) to use for all diff --git a/docs/reference.rst b/docs/reference.rst index e1d673266..805ed7425 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -181,14 +181,3 @@ Encryption Configuration :toctree: generated encryption_configuration.EncryptionConfiguration - -Additional Types -================ - -Protocol buffer classes for working with the Models API. - -.. toctree:: - :maxdepth: 2 - - bigquery_v2/services - bigquery_v2/types diff --git a/synth.metadata b/synth.metadata index 87c911a0f..b4139fec3 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "git@github.com:plamut/python-bigquery.git", - "sha": "f49021886e8805502ff90cc470bb38cbd314e6bb" + "sha": "27fd9a439a03192fccf1078f0c8ada843df5ae2e" } }, { diff --git a/synth.py b/synth.py index b35b51ee6..7ef57b135 100644 --- a/synth.py +++ b/synth.py @@ -89,4 +89,11 @@ '{"members": True, "inherited-members": True}' ) +# Tell Sphinx to ingore autogenerated docs files. +s.replace( + "docs/conf.py", + r'"samples/snippets/README\.rst",', + '\g<0>\n "bigquery_v2", # docs generated by the code generator', +) + s.shell.run(["nox", "-s", "blacken"], hide_output=False)