build doc before totoro