118 points · by senko · 15y ago · 22 comments
I can't wait for the Indian and western programming cultures to become more intertwined. I feel like we have a lot to gain from each other.
git clone git://github.com/django/django && cd django/docs && make html
The Python docs can similarly be built for offline reading.Django uses Sphinx for its documentation system, you can just build the doc from the source tree, in whatever format you prefer.
It's really not hard, and it's using a tool you should start using as soon as you start "serious" Python projects: Sphinx.
Building the doc from source is pretty much trivial on Unix-type systems (OSX, Linux, BSD, whatever)
* Get the django source, either tarball or source control
* Install sphinx
* Go to the root of your Django install
* `make -C docs [format...]` where format is any set of valid sphinx output formats: html, dirhtml, singlehtml, htmlhelp, qthelp, devhelp, epub, latex, latexpdf, text or man
You compiled documentation will be in the `_build/$format` directory, for each format you're building (you can build all of them). The latexpdf target requires that `pdflatex` be installed and available.
They have to walk a careful line in that regard, and I think they made the right call on offline docs.
Good call - I just did. There's a "download" link in the sidebar now.