Improve API docs generation.