Creating a local copy of the Django documentation

Yes, yes, this is me again and again on the Django documentation :) This time there will be no long translations, just a small note.
So, if you want to always have access to the documentation for your favorite development tool, this topic is for you.
')
Linux:
- Run the command line and install Sphinx:
sudo easy_install Sphinx
- Inside your Django directory, find the docs folder, go to it and:
make html
- That's all! Inside docs we execute:
_build / html / index.html
Windows: (method provided
overPlumbum , for which he thanks) :)
- Run the command line, go to the Scripts folder from the Python directory and install Sphinx:
cd C: \ Python26 \ Scripts
easy_install sphinx
- Inside your Django directory, find the docs folder, go to it and create two new sections:
cd C: \ path_to_django_trunc \ docs
mkdir _build \ html
mkdir _build \ doctrees
- Using the installed Sphinx create documentation:
C: \ Python26 \ Scripts \ sphinx-build.exe -b html -d _build / doctrees. _build / html
- Hooray! Now the html-version of the documentation is available here:
C: \ path_to_django_trunc \ docs \ _build \ html \ index.html
O miracle: now you can read the documentation even far from the Internet :)
Source: https://habr.com/ru/post/80532/
All Articles