We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
editUrl
1 parent fd93663 commit 8916859Copy full SHA for 8916859
docusaurus.config.js
@@ -40,11 +40,11 @@ const config = {
40
'classic',
41
/** @type {import('@docusaurus/preset-classic').Options} */
42
({
43
- docs: {
+ docs: {
44
sidebarPath: './sidebars.js',
45
- // Please change this to your repo.
46
- editUrl:
47
- 'https://github.com/open-sauced/intro',
+ // Dynamic editUrl construction
+ editUrl: ({ versionDocsDirPath, docPath }) =>
+ `https://github.com/open-sauced/intro/edit/main/${versionDocsDirPath}/${docPath}`,
48
routeBasePath: '/',
49
},
50
theme: {
0 commit comments