make sure the intermediate index.html files are generated consistently

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
Merge pull request #5521 from SvenDowideit/doc-auto-section

make sure the intermediate index.html files are generated consistently