diff --git a/docs/build_docs/source/conf.py b/docs/build_docs/source/conf.py
index 1208888abb2..294d2d1465a 100644
--- a/docs/build_docs/source/conf.py
+++ b/docs/build_docs/source/conf.py
@@ -34,11 +34,13 @@
'sphinx.ext.coverage',
'sphinx.ext.autosummary',
'sphinx_md',
+ 'sphinx_rtd_theme',
'autoapi.extension',
'sphinx.ext.napoleon',
'sphinx.ext.githubpages',
- "sphinx.ext.linkcode",
- 'breathe'
+ 'sphinx.ext.linkcode',
+ 'breathe',
+ 'sphinxcontrib.jquery',
]
autoapi_dirs = ['../../intel_extension_for_transformers']
diff --git a/docs/build_docs/sphinx-requirements.txt b/docs/build_docs/sphinx-requirements.txt
index fd3250494a7..0c7d6691868 100644
--- a/docs/build_docs/sphinx-requirements.txt
+++ b/docs/build_docs/sphinx-requirements.txt
@@ -1,8 +1,12 @@
breathe
-recommonmark
-setuptools_scm[toml]>=6.2
-sphinx
-sphinx-autoapi
-sphinx-markdown-tables
-sphinx-md
-sphinx_rtd_theme
+recommonmark==0.7.1
+setuptools_scm[toml]==8.1.0
+sphinx==7.3.7
+sphinx-autoapi==3.1.0
+sphinx-autobuild==2024.4.16
+sphinx-markdown-tables==0.0.17
+sphinx-md==0.0.4
+sphinx_rtd_theme==2.0.0
+sphinxcontrib-jquery==4.1
+sphinxemoji==0.3.1
+
diff --git a/docs/build_docs/update_html.py b/docs/build_docs/update_html.py
index 3831f05f63a..9a302169b36 100644
--- a/docs/build_docs/update_html.py
+++ b/docs/build_docs/update_html.py
@@ -50,11 +50,33 @@ def update_source_url(version, folder_name, index_file):
with open(index_file, "w") as f:
f.write(index_buf)
+def update_search(folder):
+ search_file_name="{}/search.html".format(folder)
+
+ with open(search_file_name, "r") as f:
+ index_buf = f.read()
+ key_str=''
+ version_list = '''
+
+
+
+
+
+
+ '''
+ index_buf = index_buf.replace(key_str, version_list)
+
+ with open(search_file_name, "w") as f:
+ f.write(index_buf)
+
def main(folder, version):
folder_name=os.path.basename(folder)
for index_file in glob.glob('{}/**/*.html'.format(folder),recursive = True):
update_version_link(version, folder_name, index_file)
update_source_url(version, folder_name, index_file)
+ update_search(folder)
def help(me):
print("python {} html_folder version".format(me))