Skip to content

Commit 9865f62

Browse files
committed
feat: edit link opens to markdown file its clicked from
1 parent f52edc6 commit 9865f62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/.vitepress/config.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,10 @@ export default defineConfig({
475475
// defaults to false, set to true to enable
476476
editLinks: true,
477477
// custom text for edit link. Defaults to "Edit this page"
478-
editLinkText: 'Help us improve this page!',
478+
editLink: {
479+
pattern: 'https://github.com/Agoric/documentation/edit/main/main/:path',
480+
text: 'Help us improve this page!',
481+
},
479482

480483
zoeVersion: 'v0.24.0',
481484
zoeDocsUpdated: 'August 25, 2022',

0 commit comments

Comments
 (0)