forked from VimPlug/jedi
fix @Alexey-T's concern of deprecated documentation, see #317
This commit is contained in:
@@ -17,7 +17,6 @@ import sys, os, datetime
|
|||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
sys.path.insert(0, os.path.abspath('..'))
|
sys.path.insert(0, os.path.abspath('..'))
|
||||||
sys.path.insert(0, os.path.abspath('../jedi'))
|
|
||||||
sys.path.append(os.path.abspath('_themes'))
|
sys.path.append(os.path.abspath('_themes'))
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ API documentation
|
|||||||
API Interface
|
API Interface
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
.. automodule:: api
|
.. automodule:: jedi.api
|
||||||
:members:
|
:members:
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
|
|
||||||
@@ -62,10 +62,10 @@ Definitions / Goto:
|
|||||||
... inception()'''
|
... inception()'''
|
||||||
>>> script = jedi.Script(source, 8, 1, '')
|
>>> script = jedi.Script(source, 8, 1, '')
|
||||||
>>>
|
>>>
|
||||||
>>> script.goto()
|
>>> script.goto_assignments()
|
||||||
[<Definition inception=my_list[2]>]
|
[<Definition inception=my_list[2]>]
|
||||||
>>>
|
>>>
|
||||||
>>> script.get_definition()
|
>>> script.goto_definitions()
|
||||||
[<Definition def my_func>]
|
[<Definition def my_func>]
|
||||||
|
|
||||||
Related names:
|
Related names:
|
||||||
|
|||||||
Reference in New Issue
Block a user