Add changelog entry and fix feature.^

This commit is contained in:
Georg Brandl 2008-06-22 19:37:40 +00:00
parent 3a943ab25f
commit abddd96093
2 changed files with 5 additions and 2 deletions

View File

@ -48,6 +48,9 @@ New features added
- The directories in the `html_static_path` can now contain
subdirectories.
- 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.

View File

@ -535,13 +535,13 @@ class StandaloneHTMLBuilder(Builder):
# 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,
)
self.info(' modindex', nonl=1)
self.handle_page('modindex', modindexcontext, 'modindex.html')