📜 ⬆️ ⬇️

Creating a local copy of the Django documentation

image

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:

  1. Run the command line and install Sphinx:
    sudo easy_install Sphinx

  2. Inside your Django directory, find the docs folder, go to it and:
    make html

  3. That's all! Inside docs we execute:
    _build / html / index.html



Windows: (method provided overPlumbum , for which he thanks) :)

  1. Run the command line, go to the Scripts folder from the Python directory and install Sphinx:
    cd C: \ Python26 \ Scripts
    easy_install sphinx

  2. 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

  3. Using the installed Sphinx create documentation:
    C: \ Python26 \ Scripts \ sphinx-build.exe -b html -d _build / doctrees. _build / html

  4. 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