Skip to content

Commit cff0fcd

Browse files
author
Cong Liu
committed
workaround searching for RTD
see readthedocs/readthedocs.org#1088 (comment)
1 parent 4580ccd commit cff0fcd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

custom_theme/searchbox.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div role="search">
2+
<form id ="rtd-search-form-alt" class="wy-form" action="{{ base_url }}/search.html" method="get">
3+
<input type="text" name="q" placeholder="Search docs" />
4+
</form>
5+
</div>

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
site_name: NW.js Documentation
22
theme: readthedocs
3+
theme_dir: 'custom_theme'
34
markdown_extensions:
45
- markdown.extensions.toc
56
- markdown.extensions.admonition

0 commit comments

Comments
 (0)