|
| 1 | +{% extends "layout.html" %} |
| 2 | +{% set title = _('Search') %} |
| 3 | +{% set script_files = script_files + ['_static/searchtools.js'] %} |
| 4 | +{% block body %} |
| 5 | + <h1 id="search-documentation">{{ _('Search') }}</h1> |
| 6 | + <p> |
| 7 | + {% trans %}From here you can search these documents. Enter your |
| 8 | + search words into the box below and click "search". Note that the |
| 9 | + search function will automatically search for all of the |
| 10 | + words. Pages containing less words won't appear in the result |
| 11 | + list.{% endtrans %} If you want to limit your search to working code examples, |
| 12 | + include the keyword "codex" (mnemonic for <i>code example</i>) in your |
| 13 | + search, eg "codex ellipse"; |
| 14 | + see <a href="{{ pathto('faq/howto_faq.html#search-examples') }}">search examples</a>. |
| 15 | + </p> |
| 16 | + <form action="" method="get"> |
| 17 | + <input type="text" name="q" value="" /> |
| 18 | + <input type="submit" value="{{ _('search') }}" /> |
| 19 | + <span id="search-progress" style="padding-left: 10px"></span> |
| 20 | + </form> |
| 21 | + {% if search_performed %} |
| 22 | + <h2>{{ _('Search Results') }}</h2> |
| 23 | + {% if not search_results %} |
| 24 | + <p>{{ _('Your search did not match any results.') }}</p> |
| 25 | + {% endif %} |
| 26 | + {% endif %} |
| 27 | + <div id="search-results"> |
| 28 | + {% if search_results %} |
| 29 | + <ul> |
| 30 | + {% for href, caption, context in search_results %} |
| 31 | + <li><a href="{{ pathto(item.href) }}">{{ caption }}</a> |
| 32 | + <div class="context">{{ context|e }}</div> |
| 33 | + </li> |
| 34 | + {% endfor %} |
| 35 | + </ul> |
| 36 | + {% endif %} |
| 37 | + </div> |
| 38 | +{% endblock %} |
| 39 | +{% block footer %} |
| 40 | + {{ super() }} |
| 41 | + <script type="text/javascript" src="searchindex.js"></script> |
| 42 | +{% endblock %} |
0 commit comments