-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afba4dd
commit ad3afd4
Showing
6 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fix: enable local page `Search` and default to PyData search on 'Enter' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/components/search-button-field.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
|
||
<div class="search-bar pst-js-only" id="search-bar"> | ||
<form class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get"> | ||
<i class="fa-solid fa-magnifying-glass"></i> | ||
<input type="search" class="form-control" name="q" placeholder="{{ theme_search_bar_text }}" | ||
aria-label="{{ theme_search_bar_text }}" autocomplete="off" autocorrect="off" | ||
autocapitalize="off" spellcheck="false"/> | ||
<span class="search-button__kbd-shortcut"> | ||
<kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd> | ||
</span> | ||
</form> | ||
<div id="search-results" class="search-results" style="display: none;" tabindex="0"></div> | ||
<form class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get"> | ||
<i class="fa-solid fa-magnifying-glass"></i> | ||
<input type="search" class="form-control" name="q" placeholder="{{ theme_search_bar_text }}" | ||
aria-label="{{ theme_search_bar_text }}" autocomplete="off" autocorrect="off" | ||
autocapitalize="off" spellcheck="false" /> | ||
<span class="search-button__kbd-shortcut"> | ||
<kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd> | ||
</span> | ||
</form> | ||
<div id="static-search-results" class="static-search-results" style="display:none;" tabindex="0"></div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ast-search.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/js/pydata_search.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters