dlang-community / harbored-mod

A documentation generator for D with support for both DDoc and Markdown.
Boost Software License 1.0
18 stars 14 forks source link

Configurable default folding depth. #46

Open kiith-sa opened 9 years ago

kiith-sa commented 9 years ago

Currently, every package in the TOC tree is folded by default (if JavaScript is not disabled).

This is not always user-friendly, e.g. when using a few nested packages in a parent package, this adds an extra click.

Add a config variable in hmod.cfg/CLI to specify the nesting level where to start folding by default. E.g. foldedDepth = 1 will mean the top package/s will not be folded but any subpackages will,

And implement the code needed for this to work.