Ignore:
Timestamp:
Jul 2, 2012 3:13:44 PM (10 years ago)
Author:
jemian
Message:

refs #8, still need to understand how the index is configured in the domain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • specdomain/trunk/src/specdomain/sphinxcontrib/specdomain.py

    r988 r989  
    190190        indextext = self._get_index_text(name)
    191191        if indextext:
    192             self.indexnode['entries'].append(('single', indextext,
    193                                               targetname, ''))
     192            self.indexnode['entries'].append(('single', indextext, targetname, ''))
     193            self.indexnode['entries'].append(('single', sig, targetname, ''))
    194194
    195195    def _get_index_text(self, name):
     
    242242    # TODO: array variables are not handled at all
    243243    # TODO: variables cited by *role* should link back to their *directive* declarations
    244     #       probably need to override handle_signature() and add_target_and_index()
    245244
    246245    def handle_signature(self, sig, signode):
     
    248247        # TODO: Should it match a regular expression?
    249248        # TODO: What if global or local? 
     249        signode += addnodes.desc_name(sig, sig)
    250250        return sig
    251251
     
    253253        targetname = '%s-%s' % (self.objtype, name)
    254254        signode['ids'].append(targetname)
    255         # TODO: index entry here is at line before directive, now must get it right
    256255        # TODO: role does not point back to it yet
    257256        # http://sphinx.pocoo.org/markup/misc.html#directive-index
Note: See TracChangeset for help on using the changeset viewer.