From 885a5ddb0ae9bbe5126887146924804ee7f36199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 27 Jul 2024 10:07:09 +0200 Subject: [PATCH] fix: fix edit url --- docusaurus.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 46a19fd..138dcd2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -35,7 +35,17 @@ const config = { routeBasePath: "/", sidebarPath: require.resolve("./sidebars.js"), sidebarCollapsible: true, - editUrl: "https://github.com/argos-ci/docs/blob/main", + editUrl: (params) => { + // External docs + if ( + params.docPath.includes("sdks/cypress") || + params.docPath.includes("sdks/playwright") || + params.docPath.includes("sdks/puppeteer") + ) { + return undefined; + } + return `https://github.com/argos-ci/docs/blob/main/${params.docPath}`; + }, }, theme: { customCss: "./src/css/custom.css",