From 69750f0eb251db8999866611817656eda573dc0c Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Wed, 10 Jun 2026 10:27:31 +0800 Subject: [PATCH] Fix: use editUrl function to correct PXF doc edit links The string-form editUrl appended the project-relative path (pxf/docs/*.md) instead of the plugin-relative path, resulting in broken "Edit this page" URLs on the PXF docs site. Switch to the function form so docPath is correctly relative to the plugin's path option (pxf/docs). --- docusaurus.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index b5382f97dc..37548c3acf 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -28,7 +28,7 @@ const config: Config = { path: 'pxf/docs', routeBasePath: 'pxf', sidebarPath: './sidebarsPxf.ts', - editUrl: 'https://github.com/apache/cloudberry-pxf/edit/main/docs/', + editUrl: ({ docPath }) => `https://github.com/apache/cloudberry-pxf/edit/main/docs/${docPath}`, // Exclude repo-level non-doc files from being rendered as pages exclude: ['README.md'], },