diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 6858a89..d2b718b 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -4,8 +4,8 @@ site_favicon: docs/img/openbr.ico copyright: 2012 The MITRE Corporation theme: readthedocs -#theme_dir: themes/readthedocs/ -theme_dir: themes/materialize +theme_dir: themes/readthedocs/ +#theme_dir: themes/materialize include_next_prev: False diff --git a/docs/themes/readthedocs/base.html b/docs/themes/readthedocs/base.html index b6b7ba6..dfc1ad8 100644 --- a/docs/themes/readthedocs/base.html +++ b/docs/themes/readthedocs/base.html @@ -46,70 +46,71 @@ +
+ {# SIDE NAV, TOGGLES ON MOBILE #} + + +
+ {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #} + + + {# PAGE CONTENT #} +
+
+ {% include "breadcrumbs.html" %} + +
+
+ {% block content %} + + {{ content }} + {% endblock %} +
+
+ {%- block footer %} + {% include "footer.html" %} + {% endblock %} +
-
- {%- block footer %} - {% include "footer.html" %} - {% endblock %} - - - - - - - -
- - {% if repo_name == 'GitHub' %} - GitHub - {% elif repo_name == 'Bitbucket' %} - BitBucket - {% endif %} - {% if previous_page %} - « Previous - {% endif %} - {% if next_page %} - Next » - {% endif %} - -
+ + + + +
+ + {% if repo_name == 'GitHub' %} + GitHub + {% elif repo_name == 'Bitbucket' %} + BitBucket + {% endif %} + +
diff --git a/docs/themes/readthedocs/css/theme_extra.css b/docs/themes/readthedocs/css/theme_extra.css index ccb384e..0868963 100644 --- a/docs/themes/readthedocs/css/theme_extra.css +++ b/docs/themes/readthedocs/css/theme_extra.css @@ -37,10 +37,34 @@ h3, h4, h5, h6 { */ .wy-nav-side { height: 100%; + width: 25%; overflow-y: auto; } -/* +.wy-nav-content-wrap { + padding-left: 25%; + margin-left: 0px; + background-color: #FFF; +} + +.toc { + position: fixed; + margin-top: -50px; + padding-left: 750px; +} + +@media (max-width:767px) { + .wy-nav-content-wrap { + padding-left: 0%; + } +} + +@media (max-width: 1300px) { + .toc { + visibility: hidden; + } +} + * readthedocs theme hides nav items when the window height is * too small to contain them. * diff --git a/docs/themes/readthedocs/toc.html b/docs/themes/readthedocs/nav.html index 4a96964..3e4f0c4 100644 --- a/docs/themes/readthedocs/toc.html +++ b/docs/themes/readthedocs/nav.html @@ -1,22 +1,23 @@ -{% if nav_item.children %} -