From 02d01ebbad264be1478a8a18c5088bbfdb39b6c4 Mon Sep 17 00:00:00 2001 From: Proshutyan Date: Tue, 7 Feb 2023 12:04:58 +0700 Subject: [PATCH 1/2] Allow singlehtml builder support --- sphinxcontrib/contentui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From fd5d93db290fdf6d8d9ee0c22f9d9817380c1668 Mon Sep 17 00:00:00 2001 From: "dmitriy.tarataichenko" Date: Tue, 7 Feb 2023 12:31:37 +0700 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=D1=81ontent=20disappears=20after=20?= =?UTF-8?q?re-click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sphinxcontrib/contentui.js | 4 ++++ 1 file changed, 4 insertions(+) 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');