Skip to content

Commit 141cf0d

Browse files
committed
search bar fix.
1 parent 889b1bc commit 141cf0d

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

docs/_templates/searchbox.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{#- Template for the search box in the header. -#}
2+
{%- if docsearch %}
3+
<div id="{{ docsearch_container[1:]|default('docsearch') }}"></div>
4+
{%- else %}
5+
<form id="searchbox"
6+
action="{{ pathto('search') }}"
7+
method="get"
8+
class="relative flex items-center group"
9+
@keydown.k.window.meta="$refs.search.focus()">
10+
<input x-ref="search"
11+
name="q"
12+
id="search-input"
13+
type="search"
14+
aria-label="Search the docs"
15+
placeholder="{{ _('Search ...') }}"
16+
class="inline-flex items-center font-medium transition-colors bg-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background border border-input hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground hover:placeholder-accent-foreground py-2 px-4 relative h-9 w-full justify-start rounded-[0.5rem] text-sm text-muted-foreground sm:pr-12 md:w-40 lg:w-64" />
17+
<kbd class="pointer-events-none absolute right-1.5 top-2 hidden h-5 select-none text-muted-foreground items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex group-hover:bg-accent group-hover:text-accent-foreground">
18+
<span class="text-xs">&#x1F50D;&#xFE0E;</span>
19+
</kbd>
20+
</form>
21+
{%- endif -%}

docs/examples/ex_overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Additional Info:
5858
:meth:`NodeGraphQt.NodeGraph.set_pipe_slicing`
5959

6060

61-
Getting Started
62-
***************
61+
Basic Setup
62+
***********
6363

6464
Here's a basic example snippet for creating two nodes and connecting them together.
6565

0 commit comments

Comments
 (0)