mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Allow searching for object names including the module name, like `sys.argv
`.
This commit is contained in:
parent
e3c4ca9445
commit
f6bf796cdb
@ -8,3 +8,4 @@ sphinx/pycode/Grammar.*pickle
|
|||||||
Sphinx.egg-info/
|
Sphinx.egg-info/
|
||||||
doc/_build/
|
doc/_build/
|
||||||
TAGS
|
TAGS
|
||||||
|
.ropeproject/
|
||||||
|
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
|||||||
Release 0.7 (in development)
|
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,
|
* Many improvements and fixes to the ``autosummary`` extension,
|
||||||
thanks to Pauli Virtanen.
|
thanks to Pauli Virtanen.
|
||||||
|
|
||||||
|
@ -341,9 +341,9 @@ var Search = {
|
|||||||
}
|
}
|
||||||
for (var prefix in descrefs) {
|
for (var prefix in descrefs) {
|
||||||
for (var name in descrefs[prefix]) {
|
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];
|
match = descrefs[prefix][name];
|
||||||
fullname = (prefix ? prefix + '.' : '') + name;
|
|
||||||
descr = desctypes[match[1]] + _(', in ') + titles[match[0]];
|
descr = desctypes[match[1]] + _(', in ') + titles[match[0]];
|
||||||
objectResults.push([filenames[match[0]], fullname, '#'+fullname, descr]);
|
objectResults.push([filenames[match[0]], fullname, '#'+fullname, descr]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user