gen-doc should overwrite, not append to API.md