A small Wake County high school will switch to online-only classes in January amid a zoning dispute with the Town of Cary.