From 901c2f859480b9450bbd39d9b92a32e6f59b569f Mon Sep 17 00:00:00 2001 From: "jack.burridge" Date: Thu, 29 Jan 2026 17:18:51 +0000 Subject: [PATCH] docs: add edit this page links --- conf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf.py b/conf.py index 01f40ce..870ac02 100644 --- a/conf.py +++ b/conf.py @@ -40,14 +40,21 @@ current_project = get_project(multiproject_projects) +html_theme_options = { + "source_repository": "https://github.com/asyncfast/amgi", + "source_branch": "main", +} + if current_project == "asyncfast": + html_theme_options["source_directory"] = "packages/asyncfast/docs" sys.path.append( str((Path(".") / "packages" / "asyncfast" / "docs" / "_ext").resolve()) ) extensions += ["async_fast_example"] if current_project == "amgi": + html_theme_options["source_directory"] = "docs" sys.path.append(str((Path(".") / "docs" / "_ext").resolve())) extensions += ["typeddict"]