HTML search results for C++. Fixes sphinx-doc/sphinx#1591.

The C++ domain did not return the actual id of elements, but the name.
The fix is as Rapptz suggested.
This commit is contained in:
Jakob Lykke Andersen 2015-02-07 12:27:29 +01:00
parent d09bcfa717
commit 75c30ba2af
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ Bugs fixed
* #1687: linkcheck now treats 401 Unauthorized responses as "working".
* #1690: toctrees with ``glob`` option now can also contain entries for single
documents with explicit title.
* #1591: html search results for C++ elements now has correct interpage links.
Release 1.3b2 (released Dec 5, 2014)

View File

@ -2417,4 +2417,4 @@ class CPPDomain(Domain):
def get_objects(self):
for refname, (docname, ast) in iteritems(self.data['objects']):
yield (refname, refname, ast.objectType, docname, refname, 1)
yield (refname, refname, ast.objectType, docname, ast.newestId, 1)