Advise to put index directives before the target.

This commit is contained in:
Georg Brandl 2008-04-06 17:41:51 +00:00
parent ea2f87fc03
commit 7dd56497af

View File

@ -120,10 +120,19 @@ mainly contained in information units, such as the language reference.
module: sys
triple: module; search; path
The execution context
---------------------
...
This directive contains five entries, which will be converted to entries in the
generated index which link to the exact location of the index statement (or, in
case of offline media, the corresponding page number).
Since index directives generate cross-reference targets at their location in
the source, it makes sense to put them *before* the thing they refer to --
e.g. a heading, as in the example above.
The possible entry types are:
single