Automatised doc gen using mock