diff --git a/doc/changelog.d/557.fixed.md b/doc/changelog.d/557.fixed.md new file mode 100644 index 000000000..120930405 --- /dev/null +++ b/doc/changelog.d/557.fixed.md @@ -0,0 +1 @@ +fix: add the default search options in the config env \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d9d7925ca..c8f3f0cfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi" [project] # Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections name = "ansys-sphinx-theme" -version = "1.1.5" +version = "1.1.6" description = "A theme devised by ANSYS, Inc. for Sphinx documentation." readme = "README.rst" requires-python = ">=3.10,<4" diff --git a/src/ansys_sphinx_theme/search/__init__.py b/src/ansys_sphinx_theme/search/__init__.py index b2f756d3f..4dd1dce1a 100644 --- a/src/ansys_sphinx_theme/search/__init__.py +++ b/src/ansys_sphinx_theme/search/__init__.py @@ -36,8 +36,9 @@ def update_search_config(app: Sphinx) -> None: """ theme_static_options = app.config.html_theme_options.get("static_search", {}) theme_static_options["keys"] = ["title", "text"] - theme_static_options["threshold"] = theme_static_options.get("threshold", 0.5) + theme_static_options["threshold"] = theme_static_options.get("threshold", 0.2) theme_static_options["limit"] = theme_static_options.get("limit", 10) + app.config.html_theme_options["static_search"] = theme_static_options __all__ = ["create_search_index", "update_search_config"]