File tree Expand file tree Collapse file tree 3 files changed +9
-20
lines changed
src/ansys_sphinx_theme/theme/ansys_sphinx_theme Expand file tree Collapse file tree 3 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 1717 < i class ="fa-solid fa-magnifying-glass "> </ i >
1818 <!-- Include the MeiliSearch JavaScript library for the search bar -->
1919 < script src ="https://cdn.jsdelivr.net/npm/docs-searchbar.js@latest/dist/cdn/docs-searchbar.min.js "> </ script >
20- < script >
21- // If no credentials provided, use the default ones
20+
21+ <!-- If no credentials provided, use the default ones -->
2222 {% if not theme_use_meilisearch.host and not theme_use_meilisearch.api_key %}
2323 {% set HOST_URL = "https://search.pyansys.com" %}
2424 {% set API_KEY = "A1Qxly2sls6g1rb1sIKEVEtE7R1UsHad0VgqnvKhD5nhBNf5de" %}
2525 {% else %}
2626 {% set HOST_URL = theme_use_meilisearch.host %}
2727 {% set API_KEY = theme_use_meilisearch.api_key %}
2828 {% endif %}
29-
29+ < script >
3030 // Initialize the MeiliSearch bar with the given API key and host
3131 // inspect the first value of index UID as default
3232 let theSearchBar = docsSearchBar ( {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ div [data-ds-theme] .searchbox input {
5353}
5454
5555# search-bar-input {
56- width : 170 % ;
56+ width : 550 px ;
5757 background-color : var (--pst-color-background );
5858 border : 1px solid var (--pst-color-border );
5959 border-radius : .25rem ;
@@ -84,7 +84,7 @@ div [data-ds-theme] .searchbox input {
8484 font-family : "Open Sans" , sans-serif;
8585 box-shadow : 0px 0px 20px var (--pst-color-border );
8686 padding : 0 10px 0px 10px ;
87- width : 25 % ;
87+ width : 250 px ;
8888 margin-left : 5px ;
8989}
9090
@@ -95,11 +95,11 @@ div [data-ds-theme] .searchbox input {
9595 border-radius : 4px ;
9696 overflow : auto;
9797 padding : 0 8px 8px ;
98- width : 99 % ;
98+ width : 805 px ;
9999}
100100
101101.meilisearch-autocomplete .docs-searchbar-suggestion {
102- width : 99 % ;
102+ width : 735 px ;
103103}
104104
105105.meilisearch-autocomplete .docs-searchbar-suggestion--highlight {
@@ -111,14 +111,3 @@ div [data-ds-theme] .searchbox input {
111111.meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-column {
112112 width : 30% ;
113113}
114-
115- .search-button__wrapper .show form .bd-search {
116- flex-grow : 2 ;
117- }
118-
119- .d-flex {
120- display : flex!important ;
121- flex-direction : row;
122- justify-content : space-between;
123- flex-wrap : nowrap;
124- }
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ basepython =
2121 py38: python3.8
2222 py39: python3.9
2323 py310: python3.10
24+ py311: python3.11
2425 py: python3
2526 {style,reformat,doc,build}: python3
2627setenv =
2728 PYTHONUNBUFFERED = yes
2829 cov: PYTEST_EXTRA_ARGS = --cov =ansys-sphinx-theme --cov-report =term --cov-report =xml --cov-report =html
30+ DOCUMENTATION_CNAME = sphinxdocs.ansys.com
2931passenv = *
30- commands =
31- pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
3232
3333[testenv:style]
3434description = Checks project code style
You can’t perform that action at this time.
0 commit comments