how to build API docs from snapshot?