Skip to content

Commit

Permalink
Fix rs.js docs edit-page links
Browse files Browse the repository at this point in the history
  • Loading branch information
raucao committed Aug 8, 2024
1 parent 27de767 commit cb20990
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ export default defineConfig({
editLink: {
pattern: ({ filePath }) => {
if (filePath.startsWith('rs.js/')) {
return `https://github.com/remotestorage/remotestorage.js/edit/master/${filePath}`
if (filePath.startsWith('rs.js/docs/api/')) {
return '/rs.js/docs/contributing/docs';
} else {
return `https://github.com/remotestorage/remotestorage.js/edit/master/${filePath.slice(6)}`;
}
} else {
return `https://github.com/remotestorage/website/edit/master/${filePath}`
}
Expand Down

0 comments on commit cb20990

Please sign in to comment.