Allow searching for object names including the module name, like `sys.argv`.

This commit is contained in:
Georg Brandl 2009-04-18 09:55:02 +02:00
parent e3c4ca9445
commit f6bf796cdb
3 changed files with 6 additions and 2 deletions

View File

@ -8,3 +8,4 @@ sphinx/pycode/Grammar.*pickle
Sphinx.egg-info/
doc/_build/
TAGS
.ropeproject/

View File

@ -1,6 +1,9 @@
Release 0.7 (in development)
============================
* Allow searching for object names including the module name, like
``sys.argv``.
* Many improvements and fixes to the ``autosummary`` extension,
thanks to Pauli Virtanen.

View File

@ -341,9 +341,9 @@ var Search = {
}
for (var prefix in descrefs) {
for (var name in descrefs[prefix]) {
if (name.toLowerCase().indexOf(object) > -1) {
var fullname = (prefix ? prefix + '.' : '') + name;
if (fullname.toLowerCase().indexOf(object) > -1) {
match = descrefs[prefix][name];
fullname = (prefix ? prefix + '.' : '') + name;
descr = desctypes[match[1]] + _(', in ') + titles[match[0]];
objectResults.push([filenames[match[0]], fullname, '#'+fullname, descr]);
}