prepare doc on build