Anonymous committed a8addca

Add changelog entry and fix feature.^

Comments (0)

Files changed (2)

   - The directories in the `html_static_path` can now contain
+  - The module index now isn't collapsed if the number of submodules
+    is larger than the number of toplevel modules.
 * The image directive now supports specifying the extension as ``.*``,
   which makes the builder select the one that matches best.  Thanks to
   Sebastian Wiesner.


             # apply heuristics when to collapse modindex at page load:
             # only collapse if number of toplevel modules is larger than
             # number of submodules
-            collapse = len(modules) - num_toplevels > num_toplevels
+            collapse = len(modules) - num_toplevels < num_toplevels
             modindexcontext = dict(
                 modindexentries = modindexentries,
                 platforms = platforms,
                 letters = letters,
-                collapse = collapse,
+                collapse_modindex = collapse,
   ' modindex', nonl=1)
             self.handle_page('modindex', modindexcontext, 'modindex.html')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.