fix docs avoiding to include a chapter inside another chapter
(cherry picked from commit 224286130b9e0178fc4784e8a5c07f22d762bb11)