Skip to content

Commit ce7aace

Browse files
fixed autodoc
1 parent ab0e905 commit ce7aace

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sphinx~=4.5.0
22
sphinx-rtd-theme~=1.0.0
3-
sphinx-copybutton~=0.5.0
3+
sphinx-copybutton~=0.5.0
4+
--editable .

docs/source/conf.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,18 @@
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
#
13-
from os.path import dirname, join, abspath
14-
import sphinx_rtd_theme
15-
import os
16-
import sys
17-
18-
sys.path.insert(
19-
0,
20-
os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
21-
)
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
2216

2317

2418
# -- Project information -----------------------------------------------------
2519

2620

21+
import sphinx_rtd_theme
22+
from os.path import dirname, join, abspath
23+
24+
2725
def read(rel_path: str) -> str:
2826
here = abspath(dirname(__file__))
2927
with open(join(here, rel_path)) as fp:

0 commit comments

Comments
 (0)