diff --git a/.vitepress/config.mts b/.vitepress/config.mts index f499cbfb..4e106bf2 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -41,7 +41,7 @@ const branchInfo = await simpleGit('.', {}).pull().branch({}); const { current, branches } = branchInfo; const isMain = current === 'main'; -const base = isMain ? '/' : `/${current}/`; +const base = isMain ? '/main/' : `/${current}/`; const domain = 'https://docs.deepwisdom.ai'; const versions = Object.keys(branches) .reduce((vs, branchname) => { @@ -66,7 +66,7 @@ const getVersions = () => { items: [ { text: 'main (unstable)', - link: `${domain}`, + link: `${domain}/main/`, target: '_blank', disabled: true, }, diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue index 727f6b01..9f7b2de0 100644 --- a/.vitepress/theme/Layout.vue +++ b/.vitepress/theme/Layout.vue @@ -1,10 +1,10 @@