#11152 closed (fixed)
Some classes missing in documentation (Template docs)
Reported by: | ben | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | autodoc intersphinx | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I want to use intersphinx to connect up my documentation with django's. #10315 has made the .inv file available (and I've added a little bit of documentation there on how to make it work) but I still can't get to django.template.Context. In the docs there's a reference to:
Rendering a context¶ Once you have a compiled Template object, you can render a context -- or multiple contexts -- with it. The Context class lives at django.template.Context
http://docs.djangoproject.com/en/dev/ref/templates/api/#rendering-a-context
However this class isn't hyperlinked (and as such a central class in django it'd be nice if its API was documented).
So a couple of questions here:
- Is this a one off or is django not making full use of sphinx?
- Is there a convention for structuring the documentation WRT autodoc stuff and narrative docs (I was lurking around when the initial move to sphinx was made but I guess I'm a little out of touch)
- Actually I just grepped (actually grinned :-D) and I can't find any references to autodoc'd stuff. Is there a reason why not?
I'm happy to add this to the docs and provide a patch, but figured I'd also raise this here to check whether maybe there's a wider issue that needs looking at?
Ben
Attachments (1)
Change History (5)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Has patch: | set |
---|---|
Summary: | Some classes missing in documentation → Some classes missing in documentation (Template docs) |
Version: | 1.0 → SVN |
I've worked up a patch with a few doc improvements and tweaks; it doesn't address everything but perhaps it is enough to resolve this issue for now.
by , 14 years ago
Attachment: | template-docs.diff added |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The answer is a little of column A, and a little of column B.
Django's docs were originally just raw Restructured Text. Just prior to v1.0, we made the conversion to Sphinx. However, as you can imagine, there was a lot of conversion to do. On top of that, the old ReST docs didn't have indexes, contents pages, etc. As a result, there are several problems hanging around. To take your class reference issue as an example:
There is a TODO listing work that needs to be done on the docs.
This problem isn't a simple as a single ticket - There are lots of individual issues to be resolved, and through a process of gradual improvement, many patches will be required. I'll leave this ticket open as a placeholder for the specific "missing class references" problem. Please open new tickets (with patches) if you want to work on another class of problem.