diff --git a/README.rst b/README.rst index d75bf41..07c7340 100644 --- a/README.rst +++ b/README.rst @@ -96,9 +96,22 @@ your "conf.py" file:: # (name, "http://example.com", True) # arbitrary absolute url # Note the "1" or "True" value above as the third argument to indicate # an arbitrary url. + # You can create a menu of links by making the name '_menu' and + # providing a list of links or '_divider' to add a divider. + # ("_menu", name, [ + # ("Examples", "examples"), + # ("_divider", ), + # ("Link", "http://example.com", True), + # ]) + 'navbar_links': [ ("Examples", "examples"), ("Link", "http://example.com", True), + ("_menu", "Example Menu", [ + ("Examples", "examples"), + ("_divider", ), + ("Link", "http://example.com", True), + ]), ], # Render the next and previous page links in navbar. (Default: true) diff --git a/sphinx_bootstrap_theme/bootstrap/navbar.html b/sphinx_bootstrap_theme/bootstrap/navbar.html index 5c1d9b9..890ddcb 100644 --- a/sphinx_bootstrap_theme/bootstrap/navbar.html +++ b/sphinx_bootstrap_theme/bootstrap/navbar.html @@ -20,7 +20,22 @@