summary refs log tree commit diff stats
path: root/nimdoc/testproject
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2022-07-17 07:41:18 +1000
committerGitHub <noreply@github.com>2022-07-16 17:41:18 -0400
commitc43a377057c56d5213eb298feba883363f2b2a26 (patch)
tree54db4270070a74f4438f9d6c3fa2d15bee51224e /nimdoc/testproject
parent094d86f99783f1366394fa444277c417dcbd1af3 (diff)
downloadNim-c43a377057c56d5213eb298feba883363f2b2a26.tar.gz
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
Diffstat (limited to 'nimdoc/testproject')
-rw-r--r--nimdoc/testproject/expected/testproject.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html
index 24dfdc13f..5fb9e697c 100644
--- a/nimdoc/testproject/expected/testproject.html
+++ b/nimdoc/testproject/expected/testproject.html
@@ -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>