Skip to content

Commit d29c615

Browse files
authored
chore: change legacy docs usage (#189)
1 parent 2373559 commit d29c615

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/eighty-candles-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alauda/doom": patch
3+
---
4+
5+
chore: change legacy docs usage

packages/doom/src/global/VersionsNav/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ const getNavMenu = () => {
2626
return document.querySelector('.rspress-nav-menu')
2727
}
2828

29-
const LEGACY_VERSIONS = ['v3.18.1', 'v3.18.0', 'v3.16', 'v3.14']
29+
const LEGACY_VERSIONS = ['3.18.1', '3.18.0', '3.16', '3.14']
3030

3131
const LEGACY_NAV_ITEMS = LEGACY_VERSIONS.map((v) => ({
3232
text: v,
33-
link: `https://docs.alauda.io/document/release-notes?version=${v}`,
33+
link: `https://cloud.alauda.cn/v3/document/navigation?version=v${v}&language=true`,
3434
}))
3535

36-
const ALLOWED_LEGACY_DOMAINS = new Set(['docs.alauda.cn', 'docs.alauda.io'])
36+
const ALLOWED_LEGACY_DOMAINS = new Set(['docs.alauda.cn'])
3737

3838
if (!isProduction()) {
3939
ALLOWED_LEGACY_DOMAINS.add('localhost')

0 commit comments

Comments
 (0)