From 2efd2c8d10ab25d230f06712270d383ba78c22d9 Mon Sep 17 00:00:00 2001 From: Chaitanya Kadu Date: Mon, 6 Jan 2025 00:39:06 +0530 Subject: [PATCH 1/2] Refactor the edit-this-page-on-github workflow --- components/layout/DocsLayout.tsx | 2 +- config/edit-page-config.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/layout/DocsLayout.tsx b/components/layout/DocsLayout.tsx index b395c9445edf..60105e13fb6a 100644 --- a/components/layout/DocsLayout.tsx +++ b/components/layout/DocsLayout.tsx @@ -60,7 +60,7 @@ function generateEditLink(post: IPost) { if (isHrefToFile) last = ''; return ( - + {EditPage} ); diff --git a/config/edit-page-config.json b/config/edit-page-config.json index 32921f145d4e..3a34d5f8091d 100644 --- a/config/edit-page-config.json +++ b/config/edit-page-config.json @@ -1,7 +1,7 @@ [ { "value": "/tools/generator", - "href": "https://github.com/asyncapi/generator/tree/master/docs" + "href": "https://github.com/asyncapi/generator/blob/master/apps/generator/docs" }, { "value": "reference/specification/", @@ -9,7 +9,7 @@ }, { "value": "/tools/cli", - "href": "https://github.com/asyncapi/cli/tree/master/docs" + "href": "https://github.com/asyncapi/cli/blob/master/docs" }, { "value": "", @@ -17,6 +17,6 @@ }, { "value": "reference/extensions/", - "href": "https://github.com/asyncapi/extensions-catalog/tree/master/extensions" + "href": "https://github.com/asyncapi/extensions-catalog/blob/master/extensions" } ] \ No newline at end of file From b9cc3c4d9b9d34a87f5d54c36d5645a3dcb1c4f4 Mon Sep 17 00:00:00 2001 From: Chaitanya Kadu Date: Mon, 6 Jan 2025 01:06:11 +0530 Subject: [PATCH 2/2] Update DocsLayout.tsx Semantic PR Title Check --- components/layout/DocsLayout.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/layout/DocsLayout.tsx b/components/layout/DocsLayout.tsx index 60105e13fb6a..dd3f264d0769 100644 --- a/components/layout/DocsLayout.tsx +++ b/components/layout/DocsLayout.tsx @@ -60,7 +60,12 @@ function generateEditLink(post: IPost) { if (isHrefToFile) last = ''; return ( - + {EditPage} );