Skip to content

Commit 7636547

Browse files
authored
ReadTheDocs and pkg_resources fix (#1145)
1 parent 4af1341 commit 7636547

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs-requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ sphinx~=2.4
22
sphinx-rtd-theme~=0.4
33
sphinx-autodoc-typehints~=1.10.2
44

5+
# Need to install the api/sdk in the venv for autodoc. Modifying sys.path
6+
# doesn't work for pkg_resources.
7+
./opentelemetry-api
8+
./opentelemetry-sdk
9+
510
# Required by ext packages
611
asgiref~=3.0
712
asyncpg>=0.12.0

docs/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626

2727
source_dirs = [
28-
os.path.abspath("../opentelemetry-api/src/"),
29-
os.path.abspath("../opentelemetry-sdk/src/"),
3028
os.path.abspath("../opentelemetry-instrumentation/src/"),
3129
]
3230

0 commit comments

Comments
 (0)