doc: remove trailing commas in API index