improve ddoc generation