Skip to content

Commit

Permalink
Docs: auto copy i18n files to website folder (#4176)
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
yangchuansheng authored Oct 26, 2023
1 parent 8e7207f commit 8f246bf
Showing 4 changed files with 62 additions and 13 deletions.
4 changes: 4 additions & 0 deletions docs/website/.gitignore
Original file line number Diff line number Diff line change
@@ -22,3 +22,7 @@ yarn-error.log*
.vercel
.idea
.vscode

i18n/zh-Hans/docusaurus-plugin-content-blog
i18n/zh-Hans/docusaurus-plugin-content-docs
i18n/zh-Hans/code.json
48 changes: 46 additions & 2 deletions docs/website/i18n/zh-Hans/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
},
"link.item.label.Company": {
"message": "Company",
"description": "The label of footer link with label=Company linking to /company"
"description": "The label of footer link with label=Company linking to https://sealos.io/company"
},
"link.item.label.Laf FaaS": {
"message": "开箱即用的云函数",
@@ -50,5 +50,49 @@
"link.item.label.Blog": {
"message": "博客",
"description": "The label of footer link with label=Blog linking to /blog"
},
"link.title.Product": {
"message": "Product",
"description": "The title of the footer links column with title=Product in the footer"
},
"link.title.Developer": {
"message": "Developer",
"description": "The title of the footer links column with title=Developer in the footer"
},
"link.title.Support": {
"message": "Support",
"description": "The title of the footer links column with title=Support in the footer"
},
"link.item.label.Laf": {
"message": "Laf",
"description": "The label of footer link with label=Laf linking to https://github.com/labring/laf"
},
"link.item.label.Sealfs": {
"message": "Sealfs",
"description": "The label of footer link with label=Sealfs linking to https://github.com/labring/sealfs"
},
"link.item.label.FastGPT": {
"message": "FastGPT",
"description": "The label of footer link with label=FastGPT linking to https://github.com/labring/FastGPT"
},
"link.item.label.Contribute": {
"message": "Contribute",
"description": "The label of footer link with label=Contribute linking to https://github.com/labring/sealos/blob/main/CONTRIBUTING.md"
},
"link.item.label.Documentation": {
"message": "Documentation",
"description": "The label of footer link with label=Documentation linking to /docs/Intro"
},
"link.item.label.Forum": {
"message": "Forum",
"description": "The label of footer link with label=Forum linking to https://forum.laf.run/"
},
"link.item.label.Feedback": {
"message": "Feedback",
"description": "The label of footer link with label=Feedback linking to https://github.com/labring/sealos/issues"
},
"link.item.label.Contact US": {
"message": "Contact US",
"description": "The label of footer link with label=Contact US linking to https://www.wenjuan.com/s/UZBZJv9ToJ/#"
}
}
}
Original file line number Diff line number Diff line change
@@ -15,4 +15,4 @@
"message": "在线使用",
"description": "Navbar item with label Start Now"
}
}
}
21 changes: 11 additions & 10 deletions docs/website/package.json
Original file line number Diff line number Diff line change
@@ -3,17 +3,18 @@
"version": "0.0.0",
"private": true,
"scripts": {
"sync-zh-files": "mkdir -p i18n/zh-Hans/docusaurus-plugin-content-docs && cp -r ../4.0/i18n/zh-Hans/ i18n/zh-Hans/docusaurus-plugin-content-docs/current/ && cp ../4.0/i18n/zh-Hans/current.json i18n/zh-Hans/docusaurus-plugin-content-docs/current.json && cp ../4.0/code.json i18n/zh-Hans/code.json",
"docusaurus": "docusaurus",
"start": "tsc && docusaurus start",
"start-zh": "tsc && docusaurus start --locale zh-Hans",
"build": "tsc && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations-en": "docusaurus write-translations --locale en",
"write-translations-zh": "docusaurus write-translations --locale zh-Hans",
"write-heading-ids": "docusaurus write-heading-ids"
"start": "yarn sync-zh-files && tsc && docusaurus start",
"start-zh": "yarn sync-zh-files && tsc && docusaurus start --locale zh-Hans",
"build": "yarn sync-zh-files && tsc && docusaurus build",
"swizzle": "yarn sync-zh-files && docusaurus swizzle",
"deploy": "yarn sync-zh-files && docusaurus deploy",
"clear": "yarn sync-zh-files && docusaurus clear",
"serve": "yarn sync-zh-files && docusaurus serve",
"write-translations-en": "yarn sync-zh-files && docusaurus write-translations --locale en",
"write-translations-zh": "yarn sync-zh-files && docusaurus write-translations --locale zh-Hans",
"write-heading-ids": "yarn sync-zh-files && docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.4.3",

0 comments on commit 8f246bf

Please sign in to comment.