Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sphinxcontrib/contentui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion sphinxcontrib/contentui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down