build a doc