From f1b1ffbdfce9e1a6747685a022b5016c79b549a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A4gnar=20O=27ock?= Date: Thu, 26 Jun 2025 21:55:13 +0200 Subject: [PATCH 1/3] docs: incorrect path for Overriding Internal Components example (#4815) --- docs/en/guide/extending-default-theme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/guide/extending-default-theme.md b/docs/en/guide/extending-default-theme.md index e7d67305..21af5dd7 100644 --- a/docs/en/guide/extending-default-theme.md +++ b/docs/en/guide/extending-default-theme.md @@ -319,7 +319,7 @@ export default defineConfig({ { find: /^.*\/VPNavBar\.vue$/, replacement: fileURLToPath( - new URL('./components/CustomNavBar.vue', import.meta.url) + new URL('./theme/components/CustomNavBar.vue', import.meta.url) ) } ] From c8fc80e438fffd98feaf7c72263bc3077792c4a2 Mon Sep 17 00:00:00 2001 From: noy4 <40069823+noy4@users.noreply.github.com> Date: Fri, 27 Jun 2025 13:19:19 +0900 Subject: [PATCH 2/3] fix(theme): remove extra slash when concatenating base with sidebar links --------- Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- src/client/theme-default/support/sidebar.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/support/sidebar.ts b/src/client/theme-default/support/sidebar.ts index 201f2536..13cd0aad 100644 --- a/src/client/theme-default/support/sidebar.ts +++ b/src/client/theme-default/support/sidebar.ts @@ -112,7 +112,8 @@ function addBase(items: SidebarItem[], _base?: string): SidebarItem[] { return [...items].map((_item) => { const item = { ..._item } const base = item.base || _base - if (base && item.link) item.link = base + item.link + if (base && item.link) + item.link = base + item.link.replace(/^\//, base.endsWith('/') ? '' : '/') if (item.items) item.items = addBase(item.items, base) return item }) From a9d87b2f46310a3a50b113f9320e3ef48d6a6491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0?= Date: Fri, 27 Jun 2025 14:26:37 +0900 Subject: [PATCH 3/3] chore: add `@ts-ignore` to `vite.rolldownVersion` access (#4816) --- src/node/build/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node/build/build.ts b/src/node/build/build.ts index e6d6a926..364c7490 100644 --- a/src/node/build/build.ts +++ b/src/node/build/build.ts @@ -109,6 +109,7 @@ export async function build( clientResult.output.some( (chunk) => chunk.type === 'chunk' && + // @ts-ignore only exists for rolldown-vite (vite.rolldownVersion || chunk.name === 'theme') && // FIXME: remove when rolldown-vite supports manualChunks chunk.moduleIds.some((id) => id.includes('client/theme-default')) )