Skip to content

Commit 5432f24

Browse files
authored
Merge pull request #116 from bashtage/role-search
ENH: Add support for RTD search
2 parents 7b15906 + fdf8810 commit 5432f24

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"recommonmark",
5252
"sphinx_markdown_tables",
5353
"sphinx_copybutton",
54+
"sphinx_search.extension",
5455
]
5556

5657
autosummary_generate = True

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ ipykernel
1111
recommonmark
1212
sphinx_markdown_tables
1313
sphinx-copybutton
14+
readthedocs-sphinx-search

sphinx_material/sphinx_material/searchbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="md-search" data-md-component="search" role="dialog">
33
<label class="md-search__overlay" for="__search"></label>
44
<div class="md-search__inner" role="search">
5-
<form class="md-search__form" action="{{ pathto('search') }}" method="GET" name="search">
5+
<form class="md-search__form" action="{{ pathto('search') }}" method="get" name="search">
66
<input type="text" class="md-search__input" name="q" placeholder="Search"
77
autocapitalize="off" autocomplete="off" spellcheck="false"
88
data-md-component="query" data-md-state="active">

0 commit comments

Comments
 (0)