We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c07e40 commit 6d2ba1bCopy full SHA for 6d2ba1b
docs/source/conf.py
@@ -22,8 +22,10 @@
22
import sys
23
import warnings
24
from datetime import datetime
25
+from pathlib import Path
26
27
sys.path.insert(0, os.path.abspath("."))
28
+TEST_DIR = str(Path('..', '..', 'test').resolve())
29
30
31
import pytorch_sphinx_theme
@@ -157,9 +159,12 @@ def reset_mpl(gallery_conf, fname):
157
159
**_get_pattern(),
158
160
"backreferences_dir": "gen_modules/backreferences",
161
"promote_jupyter_magic": True,
- "first_notebook_cell": None,
162
"doc_module": ("torchaudio",),
163
"reset_modules": (reset_mpl, "seaborn"),
164
+ 'first_notebook_cell': (
165
+ "import sys\n"
166
+ f"sys.path.insert(0, {TEST_DIR})"
167
+ )
168
}
169
autosummary_generate = True
170
0 commit comments