how to build docs