简体   繁体   English

django rest 框架离线文档

[英]django rest framework offline documentation

I need to get the documentation for django rest framework for offline usage, Why?我需要获取 django rest 框架的文档以供离线使用,为什么? b/c I live in Ethiopia and the internet is too damn slow for me to go online just to the doc of APIView . b / c我住在埃塞俄比亚,互联网对我来说太慢了 go 在线只是到APIView的文档。 So does anybody know of a link where I can find the offline version of the documentation?那么有人知道我可以在哪里找到文档的离线版本的链接吗? The pdf on readthedoc is outdated and empty and I can't seem to find any other alternative. readthedoc 上的pdf已过时且为空,我似乎找不到任何其他替代方案。

Can anyone help?任何人都可以帮忙吗?

The documentation for DRF is contained within the main repo. DRF 的文档包含在主存储库中。 You can use mkdocs serve to serve the documentation locally.您可以使用mkdocs serve在本地提供文档。

Checkout the DRF repo:查看 DRF 存储库:

git clone https://github.com/encode/django-rest-framework.git
cd django-rest-framework

Install and run mkdocs .安装并运行mkdocs You must do this in the above directory which contains mkdocs.yml .您必须在上面包含mkdocs.yml的目录中执行此操作。

pip install mkdocs
mkdocs serve

Visit http://127.0.0.1:8000 in your web browser.在 web 浏览器中访问http://127.0.0.1:8000

You can also download the PWA from devdocs.io您也可以从 devdocs.io 下载 PWA

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM