|
23 | 23 | from os.path import abspath, dirname
|
24 | 24 |
|
25 | 25 | # Make sure we get the version of this copy of cmd2
|
26 |
| -sys.path.insert(1, dirname(dirname(abspath(__file__)))) |
| 26 | +root_path = dirname(dirname(abspath(__file__))) |
| 27 | +cmd2_ext_test_path = f'{root_path}/plugins/ext_test/' |
| 28 | +sys.path.insert(1, root_path) # cmd2 |
| 29 | +sys.path.insert(2, cmd2_ext_test_path) # cmd2_ext_test |
27 | 30 |
|
28 | 31 | # Import for custom theme from Read the Docs
|
29 |
| -import sphinx_rtd_theme |
| 32 | +import sphinx_rtd_theme # noqa E402 |
30 | 33 |
|
31 | 34 | # -- General configuration -----------------------------------------------------
|
32 | 35 |
|
|
179 | 182 | # Ignore nitpicky warnings from autodoc which are occurring for very new versions of Sphinx and autodoc
|
180 | 183 | # They seem to be happening because autodoc is now trying to add hyperlinks to docs for typehint classes
|
181 | 184 | nitpick_ignore = [
|
182 |
| - ('py:class', 'cmd2.decorators.CommandParent'), |
183 |
| - ('py:obj', 'cmd2.decorators.CommandParent'), |
| 185 | + ('py:class', 'ArgparseCommandFunc'), |
184 | 186 | ('py:class', 'argparse._SubParsersAction'),
|
| 187 | + ('py:class', 'cmd2.decorators.CommandParent'), |
185 | 188 | ('py:class', 'cmd2.utils._T'),
|
| 189 | + ('py:class', 'CommandParent'), |
| 190 | + ('py:class', 'frame'), |
| 191 | + ('py:class', 'RawCommandFuncOptionalBoolReturn'), |
186 | 192 | ('py:class', 'types.FrameType'),
|
| 193 | + ('py:obj', 'cmd2.decorators.CommandParent'), |
187 | 194 | ]
|
0 commit comments