fix(build): improve doc gen