[docs] Fix the docs and document the API

2 jobs for cleanup in 3 minutes and 46 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #220006
docker
build_linux_37

00:03:44

33.0%
passed #220005
macosx
build_macosx_37

00:00:47