docgen: don't display diagrams with one entry; variouse improvements