Skip to content

Commit 622524a

Browse files
author
alexey
committed
enable search engine
1 parent e6e771b commit 622524a

File tree

5 files changed

+40
-7
lines changed

5 files changed

+40
-7
lines changed

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use_absolute_urls: true
77
include_search: true
88
theme_center_lead: false
99

10-
theme: "readthedocs"
11-
#theme_dir: './theme/readthedocs'
10+
#theme: "readthedocs"
11+
theme_dir: './theme/readthedocs'
1212
#theme: slate
1313
#theme: highlight.js
1414

theme/readthedocs/base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@
7575
{% include "breadcrumbs.html" %}
7676
<div role="main">
7777
<div class="section">
78-
{{ content }}
78+
{% block content %}
79+
{{ content }}
80+
{% endblock %}
7981
</div>
8082
</div>
8183
{%- block footer %}

theme/readthedocs/css/theme_extra.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ pre code.example {
134134
.wy-menu-vertical .toctree-l1 a {
135135
color: #f6f8f7;
136136
}
137+
/*
138+
* Jelastic correspondence
139+
*/
137140

138141
table, th, td, tr {
139142
border: 2px solid grey;
@@ -152,3 +155,33 @@ th, td {
152155
text-align: center;
153156
font-size: 13px;
154157
}
158+
159+
/*
160+
* Additions specific to the search functionality provided by MkDocs
161+
*/
162+
163+
#mkdocs-search-results article h3
164+
{
165+
margin-top: 23px;
166+
border-top: 1px solid #E1E4E5;
167+
padding-top: 24px;
168+
}
169+
170+
#mkdocs-search-results article:first-child h3 {
171+
border-top: none;
172+
}
173+
174+
#mkdocs-search-query{
175+
width: 100%;
176+
border-radius: 50px;
177+
padding: 6px 12px;
178+
border-color: #D1D4D5;
179+
}
180+
181+
.wy-menu-vertical li ul {
182+
display: inherit;
183+
}
184+
185+
.wy-menu-vertical li ul.subnav ul.subnav{
186+
padding-left: 1em;
187+
}

theme/readthedocs/searchbox.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
{# disabled until implemented
21
<div role="search">
3-
<form id ="rtd-search-form" class="wy-form" action="" method="get">
2+
<form id ="rtd-search-form" class="wy-form" action="{{ base_url }}/search.html" method="get">
43
<input type="text" name="q" placeholder="Search docs" />
54
<input type="hidden" name="check_keywords" value="yes" />
65
<input type="hidden" name="area" value="default" />
76
</form>
87
</div>
9-
#}

theme/readthedocs/versions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626

2727
</div>
2828
{% if previous_page %}<span><a href="{{ previous_page.url }}" style="color: #fcfcfc;">&laquo; Previous</a></span>{% endif %}
29-
<span style="margin-left: 15px"><a href="{{ next_page.url }}" style="color: #fcfcfc">Next &raquo;</a></span>
29+
{% if next_page %}<span style="margin-left: 15px"><a href="{{ next_page.url }}" style="color: #fcfcfc">Next &raquo;</a></span>{% endif %}
3030

3131
</div>

0 commit comments

Comments
 (0)