update doc of build-declaration func