From f58b66536e79d1690b12f5d294e2c4806fa77008 Mon Sep 17 00:00:00 2001 From: zerolee <464806884@qq.com> Date: Wed, 13 Dec 2023 14:44:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9domain=20=E7=9A=84?= =?UTF-8?q?=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.mts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index eb2fd85a..6ffd2768 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -37,7 +37,7 @@ const branchInfo = await simpleGit('.', {}).pull().branch({}); const { current, branches } = branchInfo; const isMain = current === 'main'; const base = isMain ? '/' : `/${current}/`; -const domian = '//docs.deepwisdom.ai'; +const domain = 'https://docs.deepwisdom.ai'; const versions = Object.keys(branches).reduce((vs, branchname) => { const regex = /^remotes\/origin\/(v.*)$/; const [, remotebn] = regex.exec(branchname) || []; @@ -56,11 +56,11 @@ const getVersions = () => { text: current, items: [ ...(!isMain - ? [{ text: 'latest', link: `${domian}`, target: '_blank' }] + ? [{ text: 'latest', link: `${domain}`, target: '_blank' }] : []), ...versions.map((v) => ({ text: v, - link: `${domian}/${v}/`, + link: `${domain}/${v}/`, target: '_blank', })), ],