diff --git a/docs/_static/copybutton.js b/docs/_static/copybutton.js deleted file mode 100644 index 5d82c67..0000000 --- a/docs/_static/copybutton.js +++ /dev/null @@ -1,57 +0,0 @@ -$(document).ready(function() { - /* Add a [>>>] button on the top-right corner of code samples to hide - * the >>> and ... prompts and the output and thus make the code - * copyable. */ - var div = $('.highlight-python .highlight,' + - '.highlight-python3 .highlight') - var pre = div.find('pre'); - - // get the styles from the current theme - pre.parent().parent().css('position', 'relative'); - var hide_text = 'Hide the prompts and output'; - var show_text = 'Show the prompts and output'; - var border_width = pre.css('border-top-width'); - var border_style = pre.css('border-top-style'); - var border_color = pre.css('border-top-color'); - var button_styles = { - 'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0', - 'border-color': border_color, 'border-style': border_style, - 'border-width': border_width, 'color': border_color, 'text-size': '75%', - 'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em', - 'border-radius': '0 3px 0 0' - } - - // create and add the button to all the code blocks that contain >>> - div.each(function(index) { - var jthis = $(this); - if (jthis.find('.gp').length > 0) { - var button = $('>>>'); - button.css(button_styles) - button.attr('title', hide_text); - jthis.prepend(button); - } - // tracebacks (.gt) contain bare text elements that need to be - // wrapped in a span to work with .nextUntil() (see later) - jthis.find('pre:has(.gt)').contents().filter(function() { - return ((this.nodeType == 3) && (this.data.trim().length > 0)); - }).wrap(''); - }); - - // define the behavior of the button when it's clicked - $('.copybutton').toggle( - function() { - var button = $(this); - button.parent().find('.go, .gp, .gt').hide(); - button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden'); - button.css('text-decoration', 'line-through'); - button.attr('title', show_text); - }, - function() { - var button = $(this); - button.parent().find('.go, .gp, .gt').show(); - button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible'); - button.css('text-decoration', 'none'); - button.attr('title', hide_text); - }); -}); - diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css deleted file mode 100644 index b76f442..0000000 --- a/docs/_static/css/custom.css +++ /dev/null @@ -1,518 +0,0 @@ -.wy-nav-content { - max-width: 100% !important; - padding: 15px !important; -} - -.rst-content dl:not(.docutils) { - margin: 0px 0px 0px 0px; -} - -.data dd { - margin-bottom: 0px !important; -} - -.data .descname { - border-right:10px !important; -} - -.local-toc li ul li{ - padding-left: 20px !important; -} - -.function .descclassname { - font-weight: normal !important; -} - -.class .descclassname { - font-weight: normal !important; -} - -.admonition.warning { - padding-top: 2px !important; - padding-bottom: 2px !important; -} - -.admonition.note { - padding-top: 2px !important; - padding-bottom: 2px !important; -} - -.rst-content dl:not(.docutils) dt { - color: #555; -} - -.sig-paren { - padding-left: 2px; - padding-right: 2px; -} - -h1, h2, h3 { - background: #eee; - padding: 5px; - border-bottom: 1px solid #ccc; -} - -h1 { - font-size: 35px; -} - -.admonition.warning { - padding-top: 5px !important; - padding-bottom: 5px !important; -} - -.admonition.warning p { - margin-bottom: 5px !important; -} - -.admonition.note { - padding-top: 5px !important; - padding-bottom: 5px !important; -} - -.admonition.note p { - margin-bottom: 5px !important; - backround-color: rgb(238, 255, 204) !important; -} - -.codeblock div[class^='highlight'], pre.literal-block div[class^='highlight'], .rst-content .literal-block div[class^='highlight'], div[class^='highlight'] div[class^='highlight'] { - background-color: #eeffcc !important; -} - -.highlight .hll { - background-color: #ffffcc -} - -.highlight { - background: #eeffcc; -} - -.highlight-default, .highlight-python { - border-radius: 3px !important; - border: 1px solid #ac9 !important; -} - -.highlight .c { - color: #408090; - font-style: italic -} - -.wy-side-nav-search { - background-color: grey !important -} - -.highlight { - border-radius: 3px !important; - -} - -div.highlight-default { - margin-bottom: 10px !important; -} - -pre { - padding: 5px !important; -} - -/* ================================================================== */ -/* Warnings and info boxes like python doc */ -/* ================================================================== */ - -div.admonition { - margin-top: 10px !important; - margin-bottom: 10px !important; -} - -div.warning { - background-color: #ffe4e4 !important; - border: 1px solid #f66 !important; - border-radius: 3px !important; -} - -div.note { - background-color: #eee !important; - border: 1px solid #ccc !important; - border-radius: 3px !important; -} - -div.admonition p.admonition-title + p { - display: inline !important; -} - -p.admonition-title { - display: inline !important; - background: none !important; - color: black !important; -} - -p.admonition-title:after { - content: ":" !important; -} - -div.body div.admonition, div.body div.impl-detail { -} - -.fa-exclamation-circle:before, .wy-inline-validate.wy-inline-validate-warning .wy-input-context:before, .wy-inline-validate.wy-inline-validate-info .wy-input-context:before, .rst-content .admonition-title:before { - display: none !important; -} - -.note code { - background: #d6d6d6 !important; -} - -/* ================================================================== */ -/* Syntax highlight like Python doc. -/* ================================================================== */ - -/* Comment */ -.highlight .err { - border: 1px solid #FF0000 -} - -/* Error */ -.highlight .k { - color: #007020; - font-weight: bold -} - -/* Keyword */ -.highlight .o { - color: #666666 -} - -/* Operator */ -.highlight .ch { - color: #408090; - font-style: italic -} - -/* Comment.Hashbang */ -.highlight .cm { - color: #408090; - font-style: italic -} - -/* Comment.Multiline */ -.highlight .cp { - color: #007020 -} - -/* Comment.Preproc */ -.highlight .cpf { - color: #408090; - font-style: italic -} - -/* Comment.PreprocFile */ -.highlight .c1 { - color: #408090; - font-style: italic -} - -/* Comment.Single */ -.highlight .cs { - color: #408090; - background-color: #fff0f0 -} - -/* Comment.Special */ -.highlight .gd { - color: #A00000 -} - -/* Generic.Deleted */ -.highlight .ge { - font-style: italic -} - -/* Generic.Emph */ -.highlight .gr { - color: #FF0000 -} - -/* Generic.Error */ -.highlight .gh { - color: #000080; - font-weight: bold -} - -/* Generic.Heading */ -.highlight .gi { - color: #00A000 -} - -/* Generic.Inserted */ -.highlight .go { - color: #333333 -} - -/* Generic.Output */ -.highlight .gp { - color: #c65d09; - font-weight: bold -} - -/* Generic.Prompt */ -.highlight .gs { - font-weight: bold -} - -/* Generic.Strong */ -.highlight .gu { - color: #800080; - font-weight: bold -} - -/* Generic.Subheading */ -.highlight .gt { - color: #0044DD -} - -/* Generic.Traceback */ -.highlight .kc { - color: #007020; - font-weight: bold -} - -/* Keyword.Constant */ -.highlight .kd { - color: #007020; - font-weight: bold -} - -/* Keyword.Declaration */ -.highlight .kn { - color: #007020; - font-weight: bold -} - -/* Keyword.Namespace */ -.highlight .kp { - color: #007020 -} - -/* Keyword.Pseudo */ -.highlight .kr { - color: #007020; - font-weight: bold -} - -/* Keyword.Reserved */ -.highlight .kt { - color: #902000 -} - -/* Keyword.Type */ -.highlight .m { - color: #208050 -} - -/* Literal.Number */ -.highlight .s { - color: #4070a0 -} - -/* Literal.String */ -.highlight .na { - color: #4070a0 -} - -/* Name.Attribute */ -.highlight .nb { - color: #007020 -} - -/* Name.Builtin */ -.highlight .nc { - color: #0e84b5; - font-weight: bold -} - -/* Name.Class */ -.highlight .no { - color: #60add5 -} - -/* Name.Constant */ -.highlight .nd { - color: #555555; - font-weight: bold -} - -/* Name.Decorator */ -.highlight .ni { - color: #d55537; - font-weight: bold -} - -/* Name.Entity */ -.highlight .ne { - color: #007020 -} - -/* Name.Exception */ -.highlight .nf { - color: #06287e -} - -/* Name.Function */ -.highlight .nl { - color: #002070; - font-weight: bold -} - -/* Name.Label */ -.highlight .nn { - color: #0e84b5; - font-weight: bold -} - -/* Name.Namespace */ -.highlight .nt { - color: #062873; - font-weight: bold -} - -/* Name.Tag */ -.highlight .nv { - color: #bb60d5 -} - -/* Name.Variable */ -.highlight .ow { - color: #007020; - font-weight: bold -} - -/* Operator.Word */ -.highlight .w { - color: #bbbbbb -} - -/* Text.Whitespace */ -.highlight .mb { - color: #208050 -} - -/* Literal.Number.Bin */ -.highlight .mf { - color: #208050 -} - -/* Literal.Number.Float */ -.highlight .mh { - color: #208050 -} - -/* Literal.Number.Hex */ -.highlight .mi { - color: #208050 -} - -/* Literal.Number.Integer */ -.highlight .mo { - color: #208050 -} - -/* Literal.Number.Oct */ -.highlight .sa { - color: #4070a0 -} - -/* Literal.String.Affix */ -.highlight .sb { - color: #4070a0 -} - -/* Literal.String.Backtick */ -.highlight .sc { - color: #4070a0 -} - -/* Literal.String.Char */ -.highlight .dl { - color: #4070a0 -} - -/* Literal.String.Delimiter */ -.highlight .sd { - color: #4070a0; - font-style: italic -} - -/* Literal.String.Doc */ -.highlight .s2 { - color: #4070a0 -} - -/* Literal.String.Double */ -.highlight .se { - color: #4070a0; - font-weight: bold -} - -/* Literal.String.Escape */ -.highlight .sh { - color: #4070a0 -} - -/* Literal.String.Heredoc */ -.highlight .si { - color: #70a0d0; - font-style: italic -} - -/* Literal.String.Interpol */ -.highlight .sx { - color: #c65d09 -} - -/* Literal.String.Other */ -.highlight .sr { - color: #235388 -} - -/* Literal.String.Regex */ -.highlight .s1 { - color: #4070a0 -} - -/* Literal.String.Single */ -.highlight .ss { - color: #517918 -} - -/* Literal.String.Symbol */ -.highlight .bp { - color: #007020 -} - -/* Name.Builtin.Pseudo */ -.highlight .fm { - color: #06287e -} - -/* Name.Function.Magic */ -.highlight .vc { - color: #bb60d5 -} - -/* Name.Variable.Class */ -.highlight .vg { - color: #bb60d5 -} - -/* Name.Variable.Global */ -.highlight .vi { - color: #bb60d5 -} - -/* Name.Variable.Instance */ -.highlight .vm { - color: #bb60d5 -} - -/* Name.Variable.Magic */ -.highlight .il { - color: #208050 -} diff --git a/docs/_static/sidebar.js b/docs/_static/sidebar.js deleted file mode 100644 index 3376963..0000000 --- a/docs/_static/sidebar.js +++ /dev/null @@ -1,161 +0,0 @@ -/* - * sidebar.js - * ~~~~~~~~~~ - * - * This script makes the Sphinx sidebar collapsible. - * - * .sphinxsidebar contains .sphinxsidebarwrapper. This script adds in - * .sphixsidebar, after .sphinxsidebarwrapper, the #sidebarbutton used to - * collapse and expand the sidebar. - * - * When the sidebar is collapsed the .sphinxsidebarwrapper is hidden and the - * width of the sidebar and the margin-left of the document are decreased. - * When the sidebar is expanded the opposite happens. This script saves a - * per-browser/per-session cookie used to remember the position of the sidebar - * among the pages. Once the browser is closed the cookie is deleted and the - * position reset to the default (expanded). - * - * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * - */ - -$(function() { - // global elements used by the functions. - // the 'sidebarbutton' element is defined as global after its - // creation, in the add_sidebar_button function - var bodywrapper = $('.bodywrapper'); - var sidebar = $('.sphinxsidebar'); - var sidebarwrapper = $('.sphinxsidebarwrapper'); - - // original margin-left of the bodywrapper and width of the sidebar - // with the sidebar expanded - var bw_margin_expanded = bodywrapper.css('margin-left'); - var ssb_width_expanded = sidebar.width(); - - // margin-left of the bodywrapper and width of the sidebar - // with the sidebar collapsed - var bw_margin_collapsed = '.8em'; - var ssb_width_collapsed = '.8em'; - - // colors used by the current theme - var dark_color = '#AAAAAA'; - var light_color = '#CCCCCC'; - - function sidebar_is_collapsed() { - return sidebarwrapper.is(':not(:visible)'); - } - - function toggle_sidebar() { - if (sidebar_is_collapsed()) - expand_sidebar(); - else - collapse_sidebar(); - } - - function collapse_sidebar() { - sidebarwrapper.hide(); - sidebar.css('width', ssb_width_collapsed); - bodywrapper.css('margin-left', bw_margin_collapsed); - sidebarbutton.css({ - 'margin-left': '0', - //'height': bodywrapper.height(), - 'height': sidebar.height(), - 'border-radius': '5px' - }); - sidebarbutton.find('span').text('»'); - sidebarbutton.attr('title', _('Expand sidebar')); - document.cookie = 'sidebar=collapsed'; - } - - function expand_sidebar() { - bodywrapper.css('margin-left', bw_margin_expanded); - sidebar.css('width', ssb_width_expanded); - sidebarwrapper.show(); - sidebarbutton.css({ - 'margin-left': ssb_width_expanded-12, - //'height': bodywrapper.height(), - 'height': sidebar.height(), - 'border-radius': '0 5px 5px 0' - }); - sidebarbutton.find('span').text('«'); - sidebarbutton.attr('title', _('Collapse sidebar')); - //sidebarwrapper.css({'padding-top': - // Math.max(window.pageYOffset - sidebarwrapper.offset().top, 10)}); - document.cookie = 'sidebar=expanded'; - } - - function add_sidebar_button() { - sidebarwrapper.css({ - 'float': 'left', - 'margin-right': '0', - 'width': ssb_width_expanded - 28 - }); - // create the button - sidebar.append( - '
«
' - ); - var sidebarbutton = $('#sidebarbutton'); - // find the height of the viewport to center the '<<' in the page - var viewport_height; - if (window.innerHeight) - viewport_height = window.innerHeight; - else - viewport_height = $(window).height(); - var sidebar_offset = sidebar.offset().top; - - var sidebar_height = sidebar.height(); - //var sidebar_height = Math.max(bodywrapper.height(), sidebar.height()); - sidebarbutton.find('span').css({ - 'display': 'block', - 'margin-top': sidebar_height/2 - 10 - //'margin-top': (viewport_height - sidebar.position().top - 20) / 2 - //'position': 'fixed', - //'top': Math.min(viewport_height/2, sidebar_height/2 + sidebar_offset) - 10 - }); - - sidebarbutton.click(toggle_sidebar); - sidebarbutton.attr('title', _('Collapse sidebar')); - sidebarbutton.css({ - 'border-radius': '0 5px 5px 0', - 'color': '#444444', - 'background-color': '#CCCCCC', - 'font-size': '1.2em', - 'cursor': 'pointer', - 'height': sidebar_height, - 'padding-top': '1px', - 'padding-left': '1px', - 'margin-left': ssb_width_expanded - 12 - }); - - sidebarbutton.hover( - function () { - $(this).css('background-color', dark_color); - }, - function () { - $(this).css('background-color', light_color); - } - ); - } - - function set_position_from_cookie() { - if (!document.cookie) - return; - var items = document.cookie.split(';'); - for(var k=0; k