mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Added a search bar to the header of the documentation layout template.
This commit is contained in:
parent
bf7ddd7bde
commit
6943304a80
14
docs/source/_themes/sol2/layout.html
Normal file
14
docs/source/_themes/sol2/layout.html
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{%- extends "haiku/layout.html" %}
|
||||||
|
|
||||||
|
{% block haikuheader %}
|
||||||
|
<div class="header-left">
|
||||||
|
{{ super() }}
|
||||||
|
</div>
|
||||||
|
<div class="header-right">
|
||||||
|
<h3>Search the Documentation</h3>
|
||||||
|
<form action="search.html" method="get">
|
||||||
|
<input type="text" name="q" value="">
|
||||||
|
<input type="submit" value="search">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
18
docs/source/_themes/sol2/static/sol2.css_t
Normal file
18
docs/source/_themes/sol2/static/sol2.css_t
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
@import url('haiku.css');
|
||||||
|
|
||||||
|
.header-left {
|
||||||
|
float: left;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right {
|
||||||
|
float: right;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-right h3 {
|
||||||
|
margin: 0;
|
||||||
|
padding-top: 15px;
|
||||||
|
}
|
4
docs/source/_themes/sol2/theme.conf
Normal file
4
docs/source/_themes/sol2/theme.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[theme]
|
||||||
|
inherit = haiku
|
||||||
|
stylesheet = sol2.css
|
||||||
|
pygments_style = autumn
|
|
@ -115,7 +115,7 @@ todo_include_todos = True
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
html_theme = "haiku"
|
html_theme = "sol2"
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a theme
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
# further. For a list of options available for each theme, see the
|
# further. For a list of options available for each theme, see the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user