File tree Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Original file line number Diff line number Diff line change 110
110
templates_path = ['tools/templates' ]
111
111
112
112
# Custom sidebar templates, filenames relative to this file.
113
- #html_sidebars = {
114
- # 'index': 'indexsidebar.html',
115
- #}
113
+ html_sidebars = {
114
+ # Defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars
115
+ # Removes the quick search block
116
+ '**' : ['localtoc.html' , 'relations.html' , 'sourcelink.html' ]
117
+ }
116
118
117
119
# Additional static files.
118
120
html_static_path = ['tools/static' ]
Original file line number Diff line number Diff line change 7
7
< a href ="{{ pathto('index') }} "> {{ shorttitle }}</ a > {{ reldelim1 }}
8
8
</ li >
9
9
{% endblock %}
10
+ {% macro searchbox() %}
11
+ {# modified from sphinx/themes/basic/searchbox.html #}
12
+ < div role ="search ">
13
+ < form action ="{{ pathto('search') }} " method ="get ">
14
+ < input placeholder ="{{ _('Quick search') }} " type ="text " name ="q " />
15
+ < input type ="submit " value ="{{ _('Go') }} " />
16
+ < input type ="hidden " name ="check_keywords " value ="yes " />
17
+ < input type ="hidden " name ="area " value ="default " />
18
+ </ form >
19
+ </ div >
20
+ < script type ="text/javascript "> $ ( '.inline-search' ) . show ( 0 ) ; </ script >
21
+ {% endmacro %}
10
22
{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
11
23
{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
24
+ {% block relbaritems %}
25
+ {% if pagename != "search" and builder != "singlehtml" %}
26
+ < li class ="inline-search right " style ="display: none ">
27
+ {{ searchbox() }}
28
+ {{ reldelim2 }}
29
+ </ li >
30
+ {%- endif %}
31
+ {% endblock %}
12
32
{% block extrahead %}
13
33
< link rel ="shortcut icon " type ="image/png " href ="{{ pathto('_static/py.png', 1) }} " />
14
34
{% if not embedded %}< script type ="text/javascript " src ="{{ pathto('_static/copybutton.js', 1) }} "> </ script > {% endif %}
15
-
35
+
16
36
{{ super() }}
17
37
{% endblock %}
18
38
{% block footer %}
27
47
{% trans sphinx_version=sphinx_version|e %}Created using < a href ="http://sphinx.pocoo.org/ "> Sphinx</ a > {{ sphinx_version }}.{% endtrans %}
28
48
</ div >
29
49
{% endblock %}
30
- {% block sidebarsourcelink %}
31
- {%- if show_source and has_source and sourcename %}
32
- < h3 > {{ _('This Page') }}</ h3 >
33
- < ul class ="this-page-menu ">
34
- < li > < a href ="{{ pathto('_sources/' + sourcename, true)|e }} "
35
- rel ="nofollow "> {% trans %}Show Source{% endtrans %}</ a > </ li >
36
- </ ul >
37
- {%- endif %}
38
- {% endblock %}
You can’t perform that action at this time.
0 commit comments