update design doc, support building docs