After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 115530 - deprecated index
deprecated index
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2003-06-19 09:40 UTC by Matthias Clasen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
the gtk-doc patch (1.98 KB, patch)
2003-06-20 17:30 UTC, Matthias Clasen
none Details | Review
the modified autoidx.xsl (16.41 KB, text/plain)
2003-06-20 17:31 UTC, Matthias Clasen
  Details

Description Matthias Clasen 2003-06-19 09:40:01 UTC
looking at javadoc for inspiration, I think it might be a nice idea to 


assemble all the deprecated stuff into a kind of index. Javadoc has


"Deprecated classes", "Deprecated interfaces", "Deprecated exceptions",


"Deprecated fields" and "Deprecated methods"
Comment 1 Matthias Clasen 2003-06-20 17:29:44 UTC
I'' append a patch which implements this by adding support for
multiple indices to the docbook stylesheets. To use it, replace 

  <index/> 

in gtk-docs.sgml by something like
 
  <index>
    <title>Index</title>
  </index>
  <index role="deprecated">
    <title>Deprecated interfaces</title>
  </index>
  <index role="2.4">
    <title>New in 2.4</title>
  </index>

gtk-doc will emit indexterms like

<indexterm>
   <primary>a regular symbol</primary>
</indexterm>
<indexterm role="deprecated"> 
   <primary>a deprecated symbol</primary>
</indexterm>
<indexterm role="2.4">
   <primary>something new</primary>
</indexterm>
<indexterm role="deprecated 2.4">
   <primary>Huh ?! New yet old</primary>
</indexterm>

and the modified autoidx.xsl of the docbook stylesheets will
sort the index entries in the proper indices. I've opened a 
feature request at docbook.sourceforge.net to get this feature
into the stylesheets, but until then, we could simply ship a 
modified autoidx.xsl with gtk-doc.

With the modified autoidx.xsl, it would also be possible to 
create separate indices for functions, classes, etc (by making
gtk-doc put appropriate markers in the role attributes).

Comment 2 Matthias Clasen 2003-06-20 17:30:27 UTC
Created attachment 17661 [details] [review]
the gtk-doc patch
Comment 3 Matthias Clasen 2003-06-20 17:31:00 UTC
Created attachment 17662 [details]
the modified autoidx.xsl
Comment 4 Owen Taylor 2003-06-23 21:56:10 UTC
It seems to me that you want the main index to have the
deprecated and (especially) new symbols as welkl. Do you
output such symbols multiple times with different
roles?
Comment 5 Matthias Clasen 2003-06-23 22:03:54 UTC
Yes, the main index gets all symbols. But there is only one indexterm
even for symbols which should appear in multiple indices. These get
multiple roles:

<indexterm role="deprecated 2.4">bah</indexterm>

will appear in all three indices, since the role attribute contains the
strings "" (for the main index), "deprecated" for the deprecated index
and 2.4 for new stuff... as you can see, by choosing "" as the role
for the main index, it is guaranteed that every symbol appears in the
main index.
Comment 6 Matthias Clasen 2004-04-19 21:04:45 UTC
The filtered index stuff will appear in the next version of the xsl stylesheets.
I've therefore committed the gtk-doc support with a version check for new enough
stylesheets.