Skip to content

Commit

Permalink
Make gallery a child of the toctree-wrapper container
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Jan 22, 2023
1 parent 1781746 commit eb70080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nbsphinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1929,12 +1929,12 @@ def has_wildcard(pattern):
newnode['toctree'] = True

toctree_wrapper[0] = newnode
node.replace_self([toctree_wrapper, gallery])
else:
# NbGallery
toctree['nbsphinx_gallery'] = True
node.replace_self([toctree_wrapper, gallery])
# NB: Further processing happens in patched_toctree_resolve()
toctree_wrapper += gallery
node.replace_self(toctree_wrapper)
doctree['nbsphinx_gallery_css'] = True


Expand Down

0 comments on commit eb70080

Please sign in to comment.