types: Don't generate classes hierarchy if not needed
In case the library doesn't have any gobjects, there would be no classes hierarchy to render. In such case, go ahead and even hide the additional documents section
Basically, I want to get rid of https://gnome.pages.gitlab.gnome.org/mutter/mtk/#extra
Edited by Bilal Elmoussaoui