Skip to content

Commit

Permalink
release: Bump version 1.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Oct 18, 2024
1 parent 9d89eb9 commit 8beec9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/557.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: add the default search options in the config env
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/ansys_sphinx_theme/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 8beec9b

Please sign in to comment.