Make doc name output support multiple level.