From 73a8c2e8ba2ad875de4da08f7e87917c5ccb1e68 Mon Sep 17 00:00:00 2001 From: Andrzej Kopytko Date: Mon, 19 Feb 2024 13:14:08 +0100 Subject: [PATCH] DOCS Update banner config for 2024 (#22920) Port from https://github.com/openvinotoolkit/openvino/pull/22916 --- docs/sphinx_setup/_static/js/hide_banner.js | 2 +- docs/sphinx_setup/_templates/search.html | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/sphinx_setup/_static/js/hide_banner.js b/docs/sphinx_setup/_static/js/hide_banner.js index 54a96ca1a26..6f6e4cb9a67 100644 --- a/docs/sphinx_setup/_static/js/hide_banner.js +++ b/docs/sphinx_setup/_static/js/hide_banner.js @@ -1,6 +1,6 @@ var cookieVersion = 0; window.onload = (e) => { - fetch('/build/docs/_build/_static/html/banner_data.json').then((data) => { + fetch('_static/html/banner_data.json').then((data) => { data.json().then((item) => { if(item != null && item.p != "" && item.version != "" && item.style != "" ) { cookieVersion = item.version; diff --git a/docs/sphinx_setup/_templates/search.html b/docs/sphinx_setup/_templates/search.html index d87f6d44423..3519f6e7e02 100644 --- a/docs/sphinx_setup/_templates/search.html +++ b/docs/sphinx_setup/_templates/search.html @@ -4,13 +4,7 @@ {%- block content %} {% block docs_navbar %} {{ super() }} -
-

OpenVINO 2022.1 has introduced OpenVINO API 2.0. For more information on transition steps from the previous API, see the transition guide

- -
- + {% include 'baner.html' %} {% endblock %} {% block body %}