From 67b8a12de77caa66f32f5cc57bd3a237e0955a87 Mon Sep 17 00:00:00 2001 From: Joe C Date: Tue, 28 Nov 2023 17:15:49 -0500 Subject: [PATCH] [docs]: add edit page button to GitHub PRs (#5916) --- docs/docusaurus.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 1f175999d77..4de5c7aa7e7 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -75,6 +75,9 @@ module.exports = { path: "src", routeBasePath: "/", sidebarPath: require.resolve("./sidebars.js"), + editUrl: ({ docPath }) => { + return `https://github.com/solana-labs/solana-program-library/edit/master/docs/src/${docPath}`; + } }, theme: { customCss: require.resolve("./src/css/custom.css"),