mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-12 18:06:14 +02:00
Fixes for search on docs site
We previously didn't include the search results page in our CI testing, so we missed some issues on that page. This ensures that page is part of regular testing, and also includes fixes for the issues present.
This commit is contained in:
parent
31ada29a37
commit
82e31f1dd4
5 changed files with 87 additions and 15 deletions
29
docs_theme/search.html
Normal file
29
docs_theme/search.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
{% extends "main.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div role="search">
|
||||
<form id ="content_search" class="wy-form mkdocs-search" action="{{ base_url }}/search.html" method="get">
|
||||
|
||||
<span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span>
|
||||
<input
|
||||
name="q"
|
||||
id="mkdocs-search-query"
|
||||
type="text"
|
||||
class="search_input search-query ui-autocomplete-input"
|
||||
placeholder="Search the Docs"
|
||||
autocomplete="off"
|
||||
autofocus
|
||||
title="Type search term here"
|
||||
>
|
||||
<button class="icon icon-search" aria-label="submit"></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h1 id="search">Results</h1>
|
||||
|
||||
<div id="mkdocs-search-results" class="search-results">
|
||||
Searching...
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue