Fix various docs build errors and warnings