do doc before build