Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit f0832d3

Browse files
Get srcdir from settings (#69)
1 parent 6a1b778 commit f0832d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frigate/sphinx/ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FrigateDirective(rst.Directive):
1818

1919
def run(self):
2020
chart_path = os.path.join(
21-
os.getcwd(), # TODO Need to find a better way to get the root of the docs
21+
self.state.document.settings.env.srcdir,
2222
self.arguments[0],
2323
)
2424
if self.options.get('output_format') is None:

0 commit comments

Comments
 (0)