From bec80f3c2f0cc7450e5705a876130db93265c39c Mon Sep 17 00:00:00 2001
From: Jarek Potiuk <jarek@potiuk.com>
Date: Tue, 14 Feb 2023 20:18:04 +0100
Subject: [PATCH] Revert "Google have re-worked their docs site ane appear not
 publish objects.inv (#28834)"

This reverts commit 44d93bea3adbe9429b6fdee14de31f80ac51c3bb.

Google re-published the .inv files after deleting them in January.

Details in https://github.com/googleapis/google-cloud-python/issues/10814
---
 docs/conf.py                                  | 35 +++++++++++++++++++
 .../docs_build/third_party_inventories.py     | 24 +++++++++++++
 docs/spelling_wordlist.txt                    |  7 ----
 3 files changed, 59 insertions(+), 7 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 7b72cdccfcdd3..59d24ca58e9c4 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -636,6 +636,41 @@ def _get_params(root_schema: dict, prefix: str = "", default_section: str = "")
         "sqlalchemy",
     ]
 }
+if PACKAGE_NAME in ("apache-airflow-providers-google", "apache-airflow"):
+    intersphinx_mapping.update(
+        {
+            pkg_name: (
+                f"{THIRD_PARTY_INDEXES[pkg_name]}/",
+                (f"{INVENTORY_CACHE_DIR}/{pkg_name}/objects.inv",),
+            )
+            for pkg_name in [
+                "google-api-core",
+                "google-cloud-automl",
+                "google-cloud-bigquery",
+                "google-cloud-bigquery-datatransfer",
+                "google-cloud-bigquery-storage",
+                "google-cloud-bigtable",
+                "google-cloud-container",
+                "google-cloud-core",
+                "google-cloud-datacatalog",
+                "google-cloud-datastore",
+                "google-cloud-dlp",
+                "google-cloud-kms",
+                "google-cloud-language",
+                "google-cloud-monitoring",
+                "google-cloud-pubsub",
+                "google-cloud-redis",
+                "google-cloud-spanner",
+                "google-cloud-speech",
+                "google-cloud-storage",
+                "google-cloud-tasks",
+                "google-cloud-texttospeech",
+                "google-cloud-translate",
+                "google-cloud-videointelligence",
+                "google-cloud-vision",
+            ]
+        }
+    )
 
 # -- Options for sphinx.ext.viewcode -------------------------------------------
 # See: https://www.sphinx-doc.org/es/master/usage/extensions/viewcode.html
diff --git a/docs/exts/docs_build/third_party_inventories.py b/docs/exts/docs_build/third_party_inventories.py
index 720af261b55be..7ac33a5333801 100644
--- a/docs/exts/docs_build/third_party_inventories.py
+++ b/docs/exts/docs_build/third_party_inventories.py
@@ -27,4 +27,28 @@
     "python": "https://docs.python.org/3",
     "requests": "https://requests.readthedocs.io/en/stable",
     "sqlalchemy": "https://docs.sqlalchemy.org/en/latest",
+    "google-api-core": "https://googleapis.dev/python/google-api-core/latest",
+    "google-cloud-automl": "https://googleapis.dev/python/automl/latest",
+    "google-cloud-bigquery": "https://googleapis.dev/python/bigquery/latest",
+    "google-cloud-bigquery-datatransfer": "https://googleapis.dev/python/bigquerydatatransfer/latest",
+    "google-cloud-bigquery-storage": "https://googleapis.dev/python/bigquerystorage/latest",
+    "google-cloud-bigtable": "https://googleapis.dev/python/bigtable/latest",
+    "google-cloud-container": "https://googleapis.dev/python/container/latest",
+    "google-cloud-core": "https://googleapis.dev/python/google-cloud-core/latest",
+    "google-cloud-datacatalog": "https://googleapis.dev/python/datacatalog/latest",
+    "google-cloud-datastore": "https://googleapis.dev/python/datastore/latest",
+    "google-cloud-dlp": "https://googleapis.dev/python/dlp/latest",
+    "google-cloud-kms": "https://googleapis.dev/python/cloudkms/latest",
+    "google-cloud-language": "https://googleapis.dev/python/language/latest",
+    "google-cloud-monitoring": "https://googleapis.dev/python/monitoring/latest",
+    "google-cloud-pubsub": "https://googleapis.dev/python/pubsub/latest",
+    "google-cloud-redis": "https://googleapis.dev/python/redis/latest",
+    "google-cloud-spanner": "https://googleapis.dev/python/spanner/latest",
+    "google-cloud-speech": "https://googleapis.dev/python/speech/latest",
+    "google-cloud-storage": "https://googleapis.dev/python/storage/latest",
+    "google-cloud-tasks": "https://googleapis.dev/python/cloudtasks/latest",
+    "google-cloud-texttospeech": "https://googleapis.dev/python/texttospeech/latest",
+    "google-cloud-translate": "https://googleapis.dev/python/translation/latest",
+    "google-cloud-videointelligence": "https://googleapis.dev/python/videointelligence/latest",
+    "google-cloud-vision": "https://googleapis.dev/python/vision/latest",
 }
diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
index e3f1eb3040fdb..860da3a8be43c 100644
--- a/docs/spelling_wordlist.txt
+++ b/docs/spelling_wordlist.txt
@@ -862,11 +862,8 @@ LineItem
 lineterminator
 linter
 linux
-ListColumnSpecsPager
-ListDatasetsPager
 ListGenerator
 ListInfoTypesResponse
-ListTableSpecsPager
 Liveness
 liveness
 livy
@@ -1368,7 +1365,6 @@ ssm
 Stackdriver
 stackdriver
 stacktrace
-StartManualTransferRunsResponse
 starttls
 StatefulSet
 StatefulSets
@@ -1435,7 +1431,6 @@ symlink
 symlinking
 symlinks
 sync'ed
-SynthesizeSpeechResponse
 sys
 syspath
 Systemd
@@ -1507,8 +1502,6 @@ tooltip
 tooltips
 traceback
 tracebacks
-TransferConfig
-TransferRun
 travis
 triage
 triaging
