forked from apache/linkis-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.txt
92 lines (70 loc) · 2.05 KB
/
info.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
podling网站
http://incubator.apache.org/guides/sites.html#podling_website_requirements
web url要求
https://www.apache.org/foundation/marks/pmcs#websites
创建新版本
基于当前的1.2.0 创建1.1.3
#存档1.2.0 版本文档
npm run docusaurus docs:version 1.2.0
#拷贝中文新版本文档
cd i18n/zh-CN/docusaurus-plugin-content-docs
cp -r current version-1.2.0
cp -r current.json version-1.2.0.json
修改 current.json version-1.2.0.json "version.label":
修改配置docusaurus.config.js
versions: {
current: {
path: '1.2.0',
label: 'Next(1.2.0)'
},
'1.1.1': {
path: 'latest',
},
}
->
versions: {
current: {
path: '1.1.3',
label: 'Next(1.1.3)'
},
'1.2.0': {
path: 'latest',
},
}
items: [
{label: 'Next(1.2.0)', to: '/docs/1.2.0/introduction'},
{label: '1.1.3', to: '/docs/latest/about/introduction'},
{label: '1.2.0', to: '/docs/1.2.0/introduction'},
{label: '1.1.1', to: '/docs/1.1.1/introduction'},
{label: '1.1.0', to: '/docs/1.1.0/introduction'},
{label: '1.0.3', to: '/docs/1.0.3/introduction'},
{label: '1.0.2', to: '/docs/1.0.2/introduction'},
{label: '0.11.0', to: '/docs/0.11.0/introduction'},
{label: 'All Version', to: '/versions'}
]
createRedirects(existingPath) {
if (existingPath.includes('/latest')) {
return [
existingPath.replace('/latest', '/1.1.3'),
];
}
return undefined; // Return a false value: no redirect created
},
修改src/pages/versions
i18n/zh-CN/code.json
theme.docs.versions.unreleasedVersionLabel
----------------
[1.1.3->1.2.0] 的修改点
assembly-combined-package/assembly-combined
linkis-dist/package
assembly-combined-package\assembly-combined
linkis-dist\package
/linkis-enginepconn-lugins/engineconn-plugins/
->
/linkis-engineconn-plugins/
linkis-engineconn-plugins/engineconn-plugins/
->
linkis-engineconn-plugins/
web->linkis-web
assembly-combined-package
->