Fix various warnings in documentation #2866