From 346681b5ad727539db72c59b6b6997baacb23769 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 6 Jun 2024 19:01:45 +0100 Subject: [PATCH] Fixed edit and view source URLs --- examples/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/__init__.py b/examples/__init__.py index e0a1965..15264d1 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -45,7 +45,7 @@ def transform(project: Project, root: Project): # Inherit settings for site URL and edit URI project.config.site_url = posixpath.join(config.site_url, name, "") - project.config.edit_uri = f"edit/master/examples/{name}/docs/" + project.config.edit_uri = f"{config.repo_url}/edit/master/{path}/docs/" # Inherit settings for theme if "features" in project.config.theme: