It’s best to simply have open shelter that the donkeys can choose to use as they see fit. Sometimes they will sleep inside at night. Sometimes they won’t. They should always be able to get shelter from the elements if they need it, but it’s best not to keep them closely confined.