Skip to content

Commit ccf4ae6

Browse files
authored
Fix up Edit on github link (#659)
1 parent 0c00b4e commit ccf4ae6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.vitepress/config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export default defineConfig({
7979
? ({ filePath, frontmatter }) => {
8080
if (frontmatter.newEditLink) {
8181
//newEditLink defines a frontmatter key you can use to append a path to master
82-
return `https://github.com/mavlink/mavlink-devguide/edit/master/docs/${frontmatter.newEditLink}`;
82+
return `https://github.com/mavlink/mavlink-devguide/edit/master/${frontmatter.newEditLink}`;
8383
} else {
84-
return `https://github.com/mavlink/mavlink-devguide/edit/master/docs/${filePath}`;
84+
return `https://github.com/mavlink/mavlink-devguide/edit/master/${filePath}`;
8585
}
8686
}
8787
: (c) =>

0 commit comments

Comments
 (0)