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 edff2a8 commit 4b09c30Copy full SHA for 4b09c30
docs/conf.py
@@ -19,6 +19,8 @@
19
20
# Handle the path not being set correctly in actions.
21
sys.path.insert(0, Path("..").resolve())
22
+PROJECT_ROOT = Path(__file__).parent.parent
23
+sys.path.insert(0, str(PROJECT_ROOT.absolute()))
24
25
from docs import utils # noqa: E402
26
@@ -30,9 +32,6 @@
30
32
31
33
REPO_LINK = "https://github.com/python-discord/bot-core"
34
-PROJECT_ROOT = Path(__file__).parent.parent
-sys.path.insert(0, str(PROJECT_ROOT.absolute()))
35
-
36
# The full version, including alpha/beta/rc tags
37
release = version = tomli.loads(
38
(PROJECT_ROOT / "pyproject.toml").read_text(encoding="utf-8")
0 commit comments