Remove documentation when building layers