diff --git a/sphinxcontrib/contentui.js b/sphinxcontrib/contentui.js index 6ecdb2f..ff7f7ff 100644 --- a/sphinxcontrib/contentui.js +++ b/sphinxcontrib/contentui.js @@ -53,6 +53,10 @@ $(function() { $('.contenttab-selector li').click(function(evt) { evt.preventDefault(); + + if(this.classList.contains('selected')) { + return; + } if ($(this).parents('.in-right-col').length){ var tabsblock = $('.right-col'); diff --git a/sphinxcontrib/contentui.py b/sphinxcontrib/contentui.py index b40013e..211afb3 100644 --- a/sphinxcontrib/contentui.py +++ b/sphinxcontrib/contentui.py @@ -85,7 +85,7 @@ def add_assets(app): def copy_assets(app, exception): - if app.builder.name not in ['html', 'readthedocs'] or exception: + if app.builder.name not in ['singlehtml','html','readthedocs'] or exception: return logger = logging.getLogger(__name__) logger.info('Copying contentui stylesheet/javascript... ', nonl=True)