From bf68979163e1c3b4e13f5d198af882142e332a53 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Mon, 1 Apr 2024 14:47:05 -0700 Subject: [PATCH 1/4] Add programmable Google Search to pytorch tutorials site --- _templates/layout.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/_templates/layout.html b/_templates/layout.html index 22129040e49..8d34012506d 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -11,6 +11,32 @@ {%- endblock %} +{% block sidebartitle %} + {% if theme_display_version %} + {%- set nav_version = version %} + {% if READTHEDOCS and current_version %} + {%- set nav_version = current_version %} + {% endif %} + {% if nav_version %} +
+ {{ nav_version }} +
+ {% endif %} + {% endif %} + + + +{% endblock %} {% block footer %} {{ super() }} From 016533a3cb463248501b5e73fed90ead895e4c9e Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Mon, 29 Jul 2024 13:21:44 -0700 Subject: [PATCH 2/4] Update --- _static/css/custom.css | 4 ++++ _templates/layout.html | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/_static/css/custom.css b/_static/css/custom.css index a467a088159..ab5f1378762 100755 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -91,3 +91,7 @@ transition: none; transform-origin: none; } + +.pytorch-left-menu-search input[type=text] { + background-image: none; +} diff --git a/_templates/layout.html b/_templates/layout.html index 8d34012506d..1c632de63f8 100644 --- a/_templates/layout.html +++ b/_templates/layout.html @@ -27,15 +27,6 @@ - - {% endblock %} {% block footer %} From 3e8f4036cef11c574f4da784a645d7c6a945e460 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Mon, 19 Aug 2024 15:52:17 -0700 Subject: [PATCH 3/4] Update --- _static/css/custom.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index ab5f1378762..65505d7b288 100755 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -95,3 +95,7 @@ .pytorch-left-menu-search input[type=text] { background-image: none; } + +.gsc-control-cse { + padding: 0px; +} From 65abb979afddef3c5e911993e22a7ebf2b696f39 Mon Sep 17 00:00:00 2001 From: Svetlana Karslioglu Date: Thu, 22 Aug 2024 12:54:40 -0700 Subject: [PATCH 4/4] Update --- _static/css/custom.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_static/css/custom.css b/_static/css/custom.css index 65505d7b288..09aba28f258 100755 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -97,5 +97,6 @@ } .gsc-control-cse { - padding: 0px; + padding-left: 0px !important; + padding-bottom: 0px !important; }