Skip to content

Commit

Permalink
Expanding navbar in the documentation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
michelgokan committed Jun 3, 2024
1 parent f4b62be commit 7d1532f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/_templates/root_doc.rst_t
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
.. raw:: html

<script type="text/javascript" >
$(document).ready(function(){
$('#bd-docs-nav').find('*').each(function(index, value){$(this).collapse('show').css('display','block')})
})
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('.bd-links .bd-toc-item details').forEach(function(details) {
details.open = true; // This should expand the details element
});
});
</script>


Expand Down

0 comments on commit 7d1532f

Please sign in to comment.