Docs: add inline search form on help page

Referring to "the search docs box on the left"
doesn't make sense on mobile (which hides search
in the hamburger menu). Instead, just include
a search form at that point in the (html) docs.
This commit is contained in:
medmunds
2021-01-25 12:49:25 -08:00
committed by Mike Edmunds
parent e523df35d1
commit 6c8a779ce1
2 changed files with 24 additions and 1 deletions

View File

@@ -70,7 +70,17 @@ Here's how to contact the Anymail community:
**"How do I...?"**
If the *Search docs* box on the left doesn't find an answer,
.. raw:: html
<div class="anymail-inline-search-form" role="search">
<form class="wy-form" action="../search/" method="get">
<input type="search" name="q" placeholder="Search docs">
<input type="hidden" name="check_keywords" value="yes">
<input type="hidden" name="area" value="default">
</form>
</div>
If searching the docs doesn't find an answer,
ask a question in the GitHub `Anymail discussions`_ forum.
**"I'm getting an error or unexpected behavior..."**