diff --git a/docs/_static/custom.css b/docs/_static/custom.css deleted file mode 100644 index 39e93a9..0000000 --- a/docs/_static/custom.css +++ /dev/null @@ -1,22 +0,0 @@ -button.copybtn { - webkit-transition: opacity .3s ease-in-out; - -o-transition: opacity .3s ease-in-out; - transition: opacity .3s ease-in-out; - opacity: 0; - padding: 2px 6px; - position: absolute; - right: 4px; - top: 4px; -} - -div.highlight:hover .copybtn, div.highlight .copybtn:focus { - opacity: .3; -} - -div.highlight .copybtn:hover { - opacity: 1; -} - -div.highlight { - position: relative; -} diff --git a/docs/_static/custom.js b/docs/_static/custom.js deleted file mode 100644 index 31ce145..0000000 --- a/docs/_static/custom.js +++ /dev/null @@ -1,25 +0,0 @@ -// Set up copy/paste for code blocks -function addCopyButtonToCode(){ - // get all elements - var allCodeBlocksElements = $( "div.highlight pre" ); - - allCodeBlocksElements.each(function(ii) { - // add different id for each code block - - // target - var currentId = "codeblock" + (ii + 1); - $(this).attr('id', currentId); - - //trigger - var clipButton = ''; - $(this).after(clipButton); - }); - - new Clipboard('.btn'); -} - -$(document).ready(function () { - // Highlight current page in sidebar - console.log('hi'); - addCopyButtonToCode(); -}); diff --git a/docs/conf.py b/docs/conf.py index 327e27e..429ab04 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,12 +10,6 @@ version = '' # The full version, including alpha/beta/rc tags release = 'v0.1' -# Add custom CSS/Javascript -def setup(app): - app.add_javascript("custom.js") - app.add_stylesheet("custom.css") - app.add_javascript("https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js") - # Enable MathJax for Math extensions = ['sphinx.ext.mathjax', 'sphinx_copybutton.sphinx_copybutton']