Django Rest 框架和 Sphinx

Django Rest Framework and Sphinx

我找不到 object.inv Django Rest Framework。

在 Sphinx conf.py 中,我有:

intersphinx_mapping = {
    'python': ('https://docs.python.org/3.5', None),
    'django': ('http://django.readthedocs.io/en/1.10.x/', None),
    'rest_framework': (????, None)
}

我试过 http://www.django-rest-framework.org/ 但是:

WARNING: intersphinx inventory 'http://www.django-rest-framework.org/objects.inv' not fetchable due to : 404 Client Error: Not Found for url: http://www.django-rest-framework.org/objects.inv

如何将文档中的 类 和方法映射到 DRF?

很遗憾,这是不可能的。

Django Rest Framework 文档不是使用 Sphinx 构建的。它是用 MkDocs 构建的。

所以没有objects.inv个文件。