diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index df5eacb..595cc0a 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -36,6 +36,8 @@ extra: - icon: fontawesome/brands/twitter link: https://twitter.com/alex_dhondt name: Alex on Twitter +extra_css: + - css/extra.css theme: name: material palette: diff --git a/docs/pages/css/extra.css b/docs/pages/css/extra.css new file mode 100644 index 0000000..c78f454 --- /dev/null +++ b/docs/pages/css/extra.css @@ -0,0 +1,26 @@ +/* Full width (only works for some themes, including 'material') */ +@media only screen and (min-width: 76.25em) { + .md-main__inner { + max-width: none; + } + .md-sidebar--primary { + left: 0; + } + .md-sidebar--secondary { + right: 0; + margin-left: 0; + -webkit-transform: none; + transform: none; + } +} + +/* See https://github.com/mkdocs/mkdocs/wiki/MkDocs-Recipes */ +/* Add Support for Checkbox Lists */ +.task-list-item { + list-style-type: none; +} + +.task-list-item input { + margin: 0 4px 0.25em -20px; + vertical-align: middle; +} diff --git a/docs/pages/js/collapsible-navbar.js b/docs/pages/js/collapsible-navbar.js deleted file mode 100644 index 335d4bb..0000000 --- a/docs/pages/js/collapsible-navbar.js +++ /dev/null @@ -1,54 +0,0 @@ -String.prototype.format = function() { - a = this; - for (k in arguments) { - a = a.replace("{" + k + "}", arguments[k]) - } - return a -} - -$(document).ready(function () { - $('li.toctree-l1').each(function () { - var parent = $(this); - var span = parent.find('span:first'); - var sibling = null; - var remove = true; - $('li.toctree-l1').each(function() { - var a = $(this).find('a:first'); - if (a.text() != '' && a.text() == span.text()) { - parent.prepend(a); - span.remove(); - span = a; - if ($(this).hasClass('current')) parent.addClass('current'); - sibling = $(this); - return false - } - }); - if (sibling === null && parent.find('ul.subnav:not(li.toctree-l2)').children('li').length) { - sibling = parent; - remove = false; - } - if (sibling !== null) { - var ul = parent.find('ul.subnav:not(li.toctree-l2)'); - var new_a = ''; - if (!ul.children('li.current').length && !parent.hasClass('current')) { - ul.hide(); - $(new_a.format("left")).insertBefore(span); - } else { - $(new_a.format("down")).insertBefore(span); - } - if (remove) sibling.remove(); - } - }); - $('a.collapse-navbar').click(function () { - var parent = $(this).closest('li.toctree-l1'); - var subnav = parent.find('ul.subnav:not(li.toctree-l2)'); - if ($(this).hasClass('fa-caret-left')) { - subnav.show(); - $(this).removeClass('fa-caret-left'); - $(this).addClass('fa-caret-down'); - } else { - subnav.hide(); - $(this).addClass('fa-caret-left'); - $(this).removeClass('fa-caret-down'); - } -});});