summaryrefslogtreecommitdiff
path: root/sphinx/domains/__init__.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-20 14:21:03 +0100
committerGeorg Brandl <georg@python.org>2010-02-20 14:21:03 +0100
commit976a208f3c7cebff362aaf609e0b2e2c8944ff57 (patch)
treeb4213c37446d90ed80405216d299ed5e62042d15 /sphinx/domains/__init__.py
parentbf67038094392f9cbf2fe9403353d384c7b6a9c1 (diff)
downloadsphinx-976a208f3c7cebff362aaf609e0b2e2c8944ff57.tar.gz
Remove "group" identifier from get_index() entries; let the template figure that out.
Diffstat (limited to 'sphinx/domains/__init__.py')
-rw-r--r--sphinx/domains/__init__.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/sphinx/domains/__init__.py b/sphinx/domains/__init__.py
index e5d3b06f..b67d090c 100644
--- a/sphinx/domains/__init__.py
+++ b/sphinx/domains/__init__.py
@@ -189,7 +189,29 @@ class Domain(object):
Return entries for the index given by *name*. If *docnames* is given,
restrict to entries referring to these docnames.
- XXX document return format
+ The return value is a tuple of ``(content, collapse)``, where *collapse*
+ is a boolean that determines if sub-entries should start collapsed (for
+ output formats that support collapsing sub-entries).
+
+ *content* is a sequence of ``(letter, entries)`` tuples, where *letter*
+ is the "heading" for the given *entries*, usually the starting letter.
+
+ *entries* is a sequence of single entries, where a single entry is a
+ sequence ``[name, subtype, docname, anchor, extra, qualifier, descr]``.
+ The items in this sequence have the following meaning:
+
+ - `name` -- the name of the index entry to be displayed
+ - `subtype` -- sub-entry related type:
+ 0 -- normal entry
+ 1 -- entry with sub-entries
+ 2 -- sub-entry
+ - `docname` -- docname where the entry is located
+ - `anchor` -- anchor for the entry within `docname`
+ - `extra` -- extra info for the entry
+ - `qualifier` -- qualifier for the description
+ - `descr` -- description for the entry
+
+ Qualifier and description are not rendered e.g. in LaTeX output.
"""
return [], False