diff --git a/docs/.vitepress/config.mjs b/docs/.vitepress/config.mjs index 7b294d2b66..3d26947dd5 100644 --- a/docs/.vitepress/config.mjs +++ b/docs/.vitepress/config.mjs @@ -89,7 +89,11 @@ export default defineConfig({ : (c) => `${ window.location.origin - }/__open-in-editor?file=${encodeURIComponent(c.filePath)}`, + }/__open-in-editor?file=${encodeURIComponent( + c.frontmatter.newEditLink + ? c.frontmatter.newEditLink + : c.filePath + )}`, }, }, },