Add custom navbar ala OpenDaylight docs 70/6870/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 14 Oct 2017 14:50:06 +0000 (10:50 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 14 Oct 2017 14:51:11 +0000 (10:51 -0400)
Change-Id: I2af32b6847a6dd1242efd6b9c320a22eff0d8d76
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
docs/_templates/relations.html [new file with mode: 0644]
docs/conf.py

diff --git a/docs/_templates/relations.html b/docs/_templates/relations.html
new file mode 100644 (file)
index 0000000..c701ed0
--- /dev/null
@@ -0,0 +1,16 @@
+<center>
+<div class="btn-group" role="group" aria-label="...">
+    {% if prev %}
+    <a class="btn btn-default" href="{{ prev.link|e }}">Prev Page</a>
+    {% else %}
+    <button type="button" class="btn btn-default disabled">Prev Page</button>
+    {% endif %}
+
+    {% if next %}
+    <a class="btn btn-default" href="{{ next.link|e }}">Next Page</a>
+    {% else %}
+    <button type="button" class="btn btn-default disabled">Next Page</button>
+    {% endif %}
+</div>
+</center>
+
index 99ff3e6..a906df6 100644 (file)
@@ -138,6 +138,8 @@ html_theme = 'bootstrap'
 # html_theme_options = {}
 html_theme_options = {
     'bootswatch_theme': "cerulean",
+    'navbar_sidebarrel': False,
+    'source_link_position': "footer",
 }
 
 # Add any paths that contain custom themes here, relative to this directory.
@@ -188,7 +190,9 @@ html_static_path = ['_static']
 
 # Custom sidebar templates, maps document names to template names.
 #
-# html_sidebars = {}
+html_sidebars = {
+    '**': ['localtoc.html', 'relations.html'],
+}
 
 # Additional templates that should be rendered to pages, maps page names to
 # template names.