In Makefile.nw, through the variable HTLATEXARGS, we specify that in the HTML file generation we split at sections and subsections (option 3).
\RequirePackage[xhtml,3,frames,next]{tex4ht}
|
Here we specify that at each section and subsection we want to see a local table of contents which is one level deep.