From 6943304a804405e3efd6b151897c162fb8574a4b Mon Sep 17 00:00:00 2001 From: OrfeasZ Date: Sat, 18 Feb 2017 19:36:29 +0200 Subject: [PATCH] Added a search bar to the header of the documentation layout template. --- docs/source/_themes/sol2/layout.html | 14 ++++++++++++++ docs/source/_themes/sol2/static/sol2.css_t | 18 ++++++++++++++++++ docs/source/_themes/sol2/theme.conf | 4 ++++ docs/source/conf.py | 2 +- 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 docs/source/_themes/sol2/layout.html create mode 100644 docs/source/_themes/sol2/static/sol2.css_t create mode 100644 docs/source/_themes/sol2/theme.conf diff --git a/docs/source/_themes/sol2/layout.html b/docs/source/_themes/sol2/layout.html new file mode 100644 index 00000000..927b9679 --- /dev/null +++ b/docs/source/_themes/sol2/layout.html @@ -0,0 +1,14 @@ +{%- extends "haiku/layout.html" %} + +{% block haikuheader %} +
+ {{ super() }} +
+
+

Search the Documentation

+
+ + +
+
+{% endblock %} \ No newline at end of file diff --git a/docs/source/_themes/sol2/static/sol2.css_t b/docs/source/_themes/sol2/static/sol2.css_t new file mode 100644 index 00000000..2db68940 --- /dev/null +++ b/docs/source/_themes/sol2/static/sol2.css_t @@ -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; +} \ No newline at end of file diff --git a/docs/source/_themes/sol2/theme.conf b/docs/source/_themes/sol2/theme.conf new file mode 100644 index 00000000..fe5b31db --- /dev/null +++ b/docs/source/_themes/sol2/theme.conf @@ -0,0 +1,4 @@ +[theme] +inherit = haiku +stylesheet = sol2.css +pygments_style = autumn \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index 02d00f92..dd73d51d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -115,7 +115,7 @@ todo_include_todos = True # The theme to use for HTML and HTML Help pages. See the documentation for # 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 # further. For a list of options available for each theme, see the