start to generate the doc