iFixit.com is the answer, for example, here's the instructions for swapping out the battery in this 2014 MacBook Air 11-inch: https://www.ifixit.com/Guide/MacBook+Air+11-Inch+Early+2014+Battery+Replacement/24735 Very straightforward.

// @skematica