Make imports/exports not be a dropdown in sidebar (#19907)

* Don't make a section be a dropdown if it has no child links

* - Cleaned up code

- Updated tests

* Document what the 'if' is checking
This commit is contained in:
Jake Leahy 2022-07-17 07:41:18 +10:00 • committed by GitHub
commit c43a377057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 9 deletions

View file

@ -51,12 +51,7 @@
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#6" id="56">Imports</a></summary>
<ul class="simple simple-toc-section">
</ul>
</details>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>