doc: generate documentation of APIs