Integrating Sphinx Documentation with django - Stack Overflow
Any suggestions for documenting a Django project? Epydoc? Sphinx?
Sphinx book in django page, how to connect? - Python - SitePoint Forums | Web Development & Design Community
Can I use Sphinx write my help documentation in a django project - Stack Overflow
There are some good use cases for integrating sphinx doc into Django:
- Allow for dynamic content within documentation (i.e. user login, current time, etc).
- Integrate the documentation with your overall sitemap.
- Only one set of templates / CSS files to create and maintain.
If you have one or more of these needs, I would take a look at django-sphinxdoc, it handles all basic use cases out of the box but can be easily modified.
IMO, the 'best' way to do this is just at the HTTP server level and not in Django itself (at least that's how I've done it in the past). You don't need or want any pieces of Django layer to serve out your sphinx docs, you just need a 'vanilla' web server setup to do that.
Also, this could help Django urls straight to html template if you insist on using Django... but again, I'd vote to just setupt a /docs directory under your root and point it at the sphinx data via basic Apache/NGINX/etc config.
At work, I have been developing a growing Django-powered site that is a collection of tools that supplement the main content.
Anyway, I'd like to build some documentation to better enable someone else to eventually take over, or if the project continues to grow, even to help me be more efficient.
Up till now, I've just been using lots of inline comments, but I think I'd like to move toward something like epydoc. The ability to click through linked HTML pages describing functionality seems attractive.
Before I get started and become tied to a particular solution, I thought I'd ask for guidance: Is epydoc the right path? I see a lot about Sphinx in my Google searches, but it looks far more complex than my needs.
Also, does anyone know of a good "intro to epydoc" (or their doc generation tool of choice) that can get me on the right path?
Any advice is appreciated.
» pip install django-sphinx