forked from apache/doris-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start-docs.sh
executable file
·65 lines (61 loc) · 3.33 KB
/
start-docs.sh
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
set -eo pipefail
echo "starting Docs..."
# clone common docs to versioned_docs
cp -rf benchmark versioned_docs/version-3.0
cp -rf ecosystem versioned_docs/version-3.0
cp -rf faq versioned_docs/version-3.0
cp -rf releasenotes versioned_docs/version-3.0
cp -rf gettingStarted versioned_docs/version-3.0
cp -rf benchmark versioned_docs/version-2.1
cp -rf ecosystem versioned_docs/version-2.1
cp -rf faq versioned_docs/version-2.1
cp -rf releasenotes versioned_docs/version-2.1
cp -rf gettingStarted versioned_docs/version-2.1
cp -rf benchmark versioned_docs/version-2.0
cp -rf ecosystem versioned_docs/version-2.0
cp -rf faq versioned_docs/version-2.0
cp -rf releasenotes versioned_docs/version-2.0
cp -rf gettingStarted versioned_docs/version-2.0
cp -rf benchmark versioned_docs/version-1.2
cp -rf ecosystem versioned_docs/version-1.2
cp -rf faq versioned_docs/version-1.2
cp -rf releasenotes versioned_docs/version-1.2
cp -rf gettingStarted versioned_docs/version-1.2
cp -rf benchmark docs
cp -rf ecosystem docs
cp -rf faq docs
cp -rf releasenotes docs
cp -rf gettingStarted docs
cp -rf common_docs_zh/benchmark i18n/zh-CN/docusaurus-plugin-content-docs/current
cp -rf common_docs_zh/ecosystem i18n/zh-CN/docusaurus-plugin-content-docs/current
cp -rf common_docs_zh/faq i18n/zh-CN/docusaurus-plugin-content-docs/current
cp -rf common_docs_zh/releasenotes i18n/zh-CN/docusaurus-plugin-content-docs/current
cp -rf common_docs_zh/gettingStarted i18n/zh-CN/docusaurus-plugin-content-docs/current
cp -rf common_docs_zh/benchmark i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2
cp -rf common_docs_zh/ecosystem i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2
cp -rf common_docs_zh/faq i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2
cp -rf common_docs_zh/releasenotes i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2
cp -rf common_docs_zh/gettingStarted i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2
cp -rf common_docs_zh/benchmark i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0
cp -rf common_docs_zh/ecosystem i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0
cp -rf common_docs_zh/faq i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0
cp -rf common_docs_zh/releasenotes i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0
cp -rf common_docs_zh/gettingStarted i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0
cp -rf common_docs_zh/benchmark i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1
cp -rf common_docs_zh/ecosystem i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1
cp -rf common_docs_zh/faq i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1
cp -rf common_docs_zh/releasenotes i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1
cp -rf common_docs_zh/gettingStarted i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1
cp -rf common_docs_zh/benchmark i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0
cp -rf common_docs_zh/ecosystem i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0
cp -rf common_docs_zh/faq i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0
cp -rf common_docs_zh/releasenotes i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0
cp -rf common_docs_zh/gettingStarted i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0
if [ "$1" = "zh-CN" ]; then
yarn start:zh-CN
else
yarn start
fi
echo "***************************************"
echo "Docs started success"
echo "***************************************"