Skip to content

Commit 9d17feb

Browse files
committed
templates: Turn off google search by default
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 722b7e6 commit 9d17feb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pytorch_sphinx_theme2/templates/search-field-custom.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@
6060

6161
// Check if the URL contains /stable/ or /tutorials/
6262
const currentUrl = window.location.href;
63-
const shouldDefaultToGoogle = currentUrl.includes('/stable/') || currentUrl.includes('/tutorials/');
63+
// TODO: We've had reports that the google programmable search is returning stale documentation,
64+
// Simple reproduction is to turn google search on and search for multinomial which will
65+
// result in returning 1.8.1 documentation.
66+
// We should turn this back on when we resolve that bug.
67+
const shouldDefaultToGoogle = false;
6468
const savedPreference = localStorage.getItem('searchPreference');
6569

6670
// Set initial state

0 commit comments

Comments
 (0)