Skip to content

Commit 2d18034

Browse files
authored
Move extensions to their own folder (#3773)
1 parent f1af727 commit 2d18034

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed
File renamed without changes.
File renamed without changes.

seo.py renamed to _extensions/seo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def run(self):
129129
if not image.startswith("/"):
130130
local_img = f"/images/{image}"
131131
image = "/_images/" + image
132-
p = Path(__file__).parent / local_img[1:]
132+
p = Path(__file__).parent.parent / local_img[1:]
133133
if not p.is_file():
134134
raise ValueError(f"File {p} for seo tag does not exist {self.state.document}")
135135

File renamed without changes.

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import sys
2626

2727

28-
sys.path.append(os.path.abspath("."))
28+
sys.path.append(os.path.abspath("_extensions"))
2929

3030
# -- General configuration ------------------------------------------------
3131

0 commit comments

Comments
 (0)