How is the drop-down menu created after the CMake Docs is built from the Help directory?

I thinks this topic is related to this comment by @brad.king: