mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add changelog entry and fix feature.^
This commit is contained in:
parent
3a943ab25f
commit
abddd96093
3
CHANGES
3
CHANGES
@ -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.
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user