From 5672ffc9fa4b7b311e97fbb59fce8c368369c9c7 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 20 Jun 2023 18:05:06 +0800 Subject: [PATCH] feat: update docs --- deploy-docs-cn.sh | 9 +++++++++ deploy-docs.sh | 9 +++++++++ .../welcome/getting-started/upgrading/git-clone.md | 10 +++++----- docs/en-US/welcome/release/v10-changelog.md | 2 +- .../welcome/getting-started/upgrading/git-clone.md | 4 ++-- 5 files changed, 26 insertions(+), 8 deletions(-) create mode 100755 deploy-docs-cn.sh create mode 100755 deploy-docs.sh diff --git a/deploy-docs-cn.sh b/deploy-docs-cn.sh new file mode 100755 index 000000000..66a902172 --- /dev/null +++ b/deploy-docs-cn.sh @@ -0,0 +1,9 @@ +cd docs/dist/zh-CN +echo "docs-cn.nocobase.com" >> CNAME +echo "" >> .nojekyll +git init +git remote add origin git@github.com:nocobase/docs-cn.nocobase.com.git +git branch -M main +git add . +git commit -m "first commit" +git push -f origin main diff --git a/deploy-docs.sh b/deploy-docs.sh new file mode 100755 index 000000000..913028eab --- /dev/null +++ b/deploy-docs.sh @@ -0,0 +1,9 @@ +cd docs/dist/en-US +echo "docs.nocobase.com" >> CNAME +echo "" >> .nojekyll +git init +git remote add origin git@github.com:nocobase/docs.nocobase.com.git +git branch -M main +git add . +git commit -m "first commit" +git push -f origin main diff --git a/docs/en-US/welcome/getting-started/upgrading/git-clone.md b/docs/en-US/welcome/getting-started/upgrading/git-clone.md index 3eb0aa027..732f8a111 100644 --- a/docs/en-US/welcome/getting-started/upgrading/git-clone.md +++ b/docs/en-US/welcome/getting-started/upgrading/git-clone.md @@ -17,11 +17,11 @@ git pull v0.10 进行了依赖的重大升级,如果 v0.9 升级 v0.10,需要删掉以下目录之后再升级 ```bash -# 删除 .umi 相关缓存 -yarn rimraf -rf ./**/{.umi,.umi-production} -# 删除编译文件 -yarn rimraf -rf packages/*/*/{lib,esm,es,dist,node_modules} -# 删除全部依赖 +# Remove .umi cache +yarn rimraf -rf "./**/{.umi,.umi-production}" +# Delete compiled files +yarn rimraf -rf "./packages/*/*/{lib,esm,es,dist,node_modules}" +# Remove dependencies yarn rimraf -rf node_modules ``` diff --git a/docs/en-US/welcome/release/v10-changelog.md b/docs/en-US/welcome/release/v10-changelog.md index 2dbbcebb1..c05f3f1da 100644 --- a/docs/en-US/welcome/release/v10-changelog.md +++ b/docs/en-US/welcome/release/v10-changelog.md @@ -44,7 +44,7 @@ No change, upgrade reference [Upgrading for Docker compose](/welcome/getting-sta v0.10 has a major upgrade of dependencies, so to prevent errors when upgrading the source code, you need to delete the following directories before upgrading ```bash -### Remove .umi-related cache +# Remove .umi cache yarn rimraf -rf "./**/{.umi,.umi-production}" # Delete compiled files yarn rimraf -rf "./packages/*/*/{lib,esm,es,dist,node_modules}" diff --git a/docs/zh-CN/welcome/getting-started/upgrading/git-clone.md b/docs/zh-CN/welcome/getting-started/upgrading/git-clone.md index 093a15ea6..e1dd0258c 100644 --- a/docs/zh-CN/welcome/getting-started/upgrading/git-clone.md +++ b/docs/zh-CN/welcome/getting-started/upgrading/git-clone.md @@ -18,9 +18,9 @@ v0.10 进行了依赖的重大升级,如果 v0.9 升级 v0.10,需要删掉 ```bash # 删除 .umi 相关缓存 -yarn rimraf -rf ./**/{.umi,.umi-production} +yarn rimraf -rf "./**/{.umi,.umi-production}" # 删除编译文件 -yarn rimraf -rf packages/*/*/{lib,esm,es,dist,node_modules} +yarn rimraf -rf "./packages/*/*/{lib,esm,es,dist,node_modules}" # 删除全部依赖 yarn rimraf -rf node_modules ```