diff --git a/CHANGES b/CHANGES index 9374d4385..b2ef6db3a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,11 @@ +Release 1.1.1 (in development) +============================== + +* #805: Make the ``Sphinx.add_index_to_domain`` method work correctly. + +* #780: Fix Python 2.5 compatibility. + + Release 1.1 (Oct 9, 2011) ========================= @@ -115,13 +123,10 @@ Features added - #714: Added Korean locale. - #766: Added Estonian locale. +* Bugs fixed: -Release 1.0.9 (in development) -============================== - -* #778: Fix "hide search matches" link on pages linked by search. - -* Fix the source positions referenced by the "viewcode" extension. + - #778: Fix "hide search matches" link on pages linked by search. + - Fix the source positions referenced by the "viewcode" extension. Release 1.0.8 (Sep 23, 2011) diff --git a/sphinx/application.py b/sphinx/application.py index dec9c13c8..bfb39a70f 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -425,11 +425,10 @@ class Sphinx(object): raise ExtensionError('domain %s not yet registered' % domain) self.domains[domain].roles[name] = role - def add_index_to_domain(self, domain, name, localname, shortname, func): + def add_index_to_domain(self, domain, index): if domain not in self.domains: raise ExtensionError('domain %s not yet registered' % domain) - self.domains[domain].indices.append((name, localname, shortname)) - setattr(self.domains[domain], 'get_%s_index' % name, func) + self.domains[domain].indices.append(index) def add_object_type(self, directivename, rolename, indextemplate='', parse_node=None, ref_nodeclass=None, objname='',