Skip to content

Commit 7e420a7

Browse files
feat: bump version 1.5.2
1 parent b27d937 commit 7e420a7

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

doc/changelog.d/721.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
remove font weight on highlight

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ theme-name = "ansys_sphinx_theme"
1111
[project]
1212
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
1313
name = "ansys-sphinx-theme"
14-
version = "1.5.1"
14+
version = "1.5.2"
1515
description = "A theme devised by ANSYS, Inc. for Sphinx documentation."
1616
readme = "README.rst"
1717
requires-python = ">=3.10,<4"

src/ansys_sphinx_theme/assets/styles/ast-search.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@
5151
}
5252

5353
/* Highlighted Text */
54-
html[data-theme="light"] .highlight {
54+
html[data-theme="light"] .search-highlight {
5555
color: var(--pst-color-text-base);
56-
font-weight: var(--ast-font-weight-bold);
5756
}
5857

5958
/* Search Input Styles */

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/js/search-main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,12 @@ require(["fuse"], function (Fuse) {
406406
...result,
407407
title: result.title.replace(
408408
regex,
409-
`<span class="highlight">$1</span>`,
409+
`<span class="search-highlight">$1</span>`,
410+
),
411+
text: snippet.replace(
412+
regex,
413+
`<span class="search-highlight">$1</span>`,
410414
),
411-
text: snippet.replace(regex, `<span class="highlight">$1</span>`),
412415
};
413416
})
414417
.filter(Boolean);

0 commit comments

Comments
 (0)