API for sphinx 2.0.4