Skip to content

Commit eb3d4c9

Browse files
authored
fix: readthedoc build (#76)
* feat: Add readthedocs support * Fix requirements.txt * Update conf.py
1 parent ca41e3a commit eb3d4c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ sphinx-autodoc-typehints>=2.0.0,<3.0.0
66
sphinx-copybutton>=0.5.2,<0.6.0
77
sphinx-tabs>=3.4.4,<4.0.0
88
furo>=2025.7.19,<2026.0.0
9-
-e ..

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
import os
1414
import sys
1515

16-
from djangocms_rest import __version__
16+
sys.path.insert(0, os.path.abspath("../.."))
1717

18-
sys.path.insert(0, os.path.abspath(".."))
18+
from djangocms_rest import __version__ # noqa: E402
1919

2020
# -- Project information -----------------------------------------------------
2121

0 commit comments

Comments
 (0)