From cb20990e697454f3011ad0d44438743c52e9200e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Thu, 8 Aug 2024 10:52:21 +0200 Subject: [PATCH] Fix rs.js docs edit-page links --- .vitepress/config.mts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index e6c49e3..d26d5f7 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -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}` }