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~13 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F6870%2F1;p=releng%2Fglobal-jjb.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 99ff3e63..a906df6b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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.