built the doc structure