From: Thanh Ha Date: Sat, 14 Oct 2017 14:50:06 +0000 (-0400) Subject: Add custom navbar ala OpenDaylight docs X-Git-Tag: v0.10.0~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F6872%2F3;p=releng%2Flftools.git Add custom navbar ala OpenDaylight docs Change-Id: I2af32b6847a6dd1242efd6b9c320a22eff0d8d76 Signed-off-by: Thanh Ha --- diff --git a/docs/_templates/relations.html b/docs/_templates/relations.html new file mode 100644 index 00000000..c701ed0c --- /dev/null +++ b/docs/_templates/relations.html @@ -0,0 +1,16 @@ +
+
+ {% if prev %} + Prev Page + {% else %} + + {% endif %} + + {% if next %} + Next Page + {% else %} + + {% endif %} +
+
+ diff --git a/docs/conf.py b/docs/conf.py index ef912a1a..b46d1492 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -139,6 +139,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. @@ -189,7 +191,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.