Skip to content

Commit 3630c0a

Browse files
committed
Use Hexdocs.pm for search instead of DDG
1 parent 26516e7 commit 3630c0a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

_includes/search.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1+
{% assign stable = site.data.elixir-versions[site.data.elixir-versions.stable].version %}
2+
13
<div class="widget news">
24
<h3>News: <a href="/blog/2025/10/16/elixir-v1-19-0-released/">Elixir v1.19.0 released</a></h3>
35
</div>
46

57
<div class="widget search">
68
<form
7-
method="post"
9+
method="get"
810
role="search"
911
id="search-form"
1012
class="search-form"
11-
action="https://duckduckgo.com/?kg=p"
12-
onsubmit="document.getElementById('searchq').value = document.getElementById('searchfield').value + ' (site:elixir-lang.org | site:hexdocs.pm/elixir | site:hexdocs.pm/mix | site:hexdocs.pm/eex | site:hexdocs.pm/logger | site:hexdocs.pm/iex | site:hexdocs.pm/ex_unit)'; return true;"
13+
action="https://hexdocs.pm/"
1314
>
14-
<input type="hidden" id="searchq" name="q" value="" aria-hidden="true" />
15-
15+
<input
16+
type="hidden"
17+
name="packages"
18+
value="elixir:{{ stable }},eex:{{ stable }},ex_unit:{{ stable }},iex:{{ stable }},logger:{{ stable }},mix:{{ stable }}"
19+
/>
1620
<input
1721
class="search-text"
1822
type="search"
1923
placeholder="Search..."
2024
id="searchfield"
25+
name="q"
2126
aria-label="Search box"
2227
/>
2328
<input

0 commit comments

Comments
 (0)