generate min and docs