Only delete old docs directory if it exists
restrict number of levels in TOC