Fix various warnings in the docs.