add doc directive