File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/ansys_sphinx_theme/search Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ fix: add the default search options in the config env
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55[project ]
66# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77name = " ansys-sphinx-theme"
8- version = " 1.1.5 "
8+ version = " 1.1.6 "
99description = " A theme devised by ANSYS, Inc. for Sphinx documentation."
1010readme = " README.rst"
1111requires-python = " >=3.10,<4"
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ def update_search_config(app: Sphinx) -> None:
3636 """
3737 theme_static_options = app .config .html_theme_options .get ("static_search" , {})
3838 theme_static_options ["keys" ] = ["title" , "text" ]
39- theme_static_options ["threshold" ] = theme_static_options .get ("threshold" , 0.5 )
39+ theme_static_options ["threshold" ] = theme_static_options .get ("threshold" , 0.2 )
4040 theme_static_options ["limit" ] = theme_static_options .get ("limit" , 10 )
41+ app .config .html_theme_options ["static_search" ] = theme_static_options
4142
4243
4344__all__ = ["create_search_index" , "update_search_config" ]
You can’t perform that action at this time.
0 commit comments