Skip to content

Commit

Permalink
fix: fix edit url
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jul 27, 2024
1 parent 39f3c50 commit 885a5dd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 885a5dd

Please sign in to comment.