From e2bd4140d4fbbbfc9611d864b90b73c6a640841f Mon Sep 17 00:00:00 2001
From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de>
Date: Tue, 21 May 2013 11:13:36 +0000
Subject: [PATCH] docs: some html layout improvements

---
 documentation/conf.py                                     | 2 +-
 documentation/templates/layout.html                       | 4 ++++
 .../{templates => themes/naturefixed}/searchbox.html      | 0
 documentation/themes/naturefixed/static/naturefixed.css_t | 8 ++++++--
 4 files changed, 11 insertions(+), 3 deletions(-)
 rename documentation/{templates => themes/naturefixed}/searchbox.html (100%)

diff --git a/documentation/conf.py b/documentation/conf.py
index 713f090e..15c1d38a 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -116,7 +116,7 @@ html_theme_path = ["themes"]
 html_title = "EPICS Sequencer Home"
 
 # A shorter title for the navigation bar.  Default is the same as html_title.
-html_short_title = "Home"
+#html_short_title = "Home"
 
 # The name of an image file (relative to this directory) to place at the top
 # of the sidebar.
diff --git a/documentation/templates/layout.html b/documentation/templates/layout.html
index 6850af06..11005fcc 100644
--- a/documentation/templates/layout.html
+++ b/documentation/templates/layout.html
@@ -21,3 +21,7 @@
     </div>
 {%- endif %}
 {%- endblock %}
+
+{%- block rootrellink %}
+        <h2><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></h2>
+{%- endblock %}
diff --git a/documentation/templates/searchbox.html b/documentation/themes/naturefixed/searchbox.html
similarity index 100%
rename from documentation/templates/searchbox.html
rename to documentation/themes/naturefixed/searchbox.html
diff --git a/documentation/themes/naturefixed/static/naturefixed.css_t b/documentation/themes/naturefixed/static/naturefixed.css_t
index 78fca0b5..f6e3edc5 100644
--- a/documentation/themes/naturefixed/static/naturefixed.css_t
+++ b/documentation/themes/naturefixed/static/naturefixed.css_t
@@ -8,9 +8,9 @@
  * :license: BSD, see LICENSE for details.
  *
  */
- 
+
 @import url("nature.css");
- 
+
 /* -- page layout ----------------------------------------------------------- */
 
 div.related {
@@ -23,6 +23,10 @@ div.related {
     width: 100%;
 }
 
+div.related h2 {
+    margin-top: 0;
+}
+
 div.document {
     position: fixed;
     top: 30px;
-- 
GitLab