Setting api directory to enable publishing snapshot docs