There is something called Wikibooks, though I've only spent maybe half an hour reading a particular wikibook years ago and can't speak to overall quality:
Yeah but I wasnt impressed with the quality when I looked at them. Im talking about paying good writers and illustrators to do stuff students would actually want to buy. Then, price it affordably. Maybe even tiered with a default price plus discounts for smaller institutions.