diff --git a/.github/workflows/deploy-docs-preview.yml b/.github/workflows/deploy-docs-preview.yml index 5ef11e17d25..9029e37dc57 100644 --- a/.github/workflows/deploy-docs-preview.yml +++ b/.github/workflows/deploy-docs-preview.yml @@ -46,15 +46,6 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: recursive # Fetch submodules fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Copy Files and Directories - run: | - mkdir -p ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-docs/ - cp -r docs/4.0/i18n/zh-Hans/ ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-docs/current/ - cp docs/4.0/i18n/zh-Hans/current.json ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-docs/current.json - cp docs/4.0/code.json ${{ env.BUILD_PATH }}/i18n/zh-Hans/code.json - mkdir -p ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-blog/ - cp -r blog/zh-Hans/ ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-blog - cp blog/zh-Hans/options.json ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-blog/options.json - name: Detect package manager id: detect-package-manager diff --git a/.github/workflows/deploy-docs-site.yml b/.github/workflows/deploy-docs-site.yml index 626e40beabf..b7af76412c8 100644 --- a/.github/workflows/deploy-docs-site.yml +++ b/.github/workflows/deploy-docs-site.yml @@ -30,12 +30,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Copy Files and Directories - run: | - mkdir -p ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-docs/ - cp -r docs/4.0/i18n/zh-Hans/ ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-docs/current/ - cp docs/4.0/i18n/zh-Hans/current.json ${{ env.BUILD_PATH }}/i18n/zh-Hans/docusaurus-plugin-content-docs/current.json - cp docs/4.0/code.json ${{ env.BUILD_PATH }}/i18n/zh-Hans/code.json - name: Detect package manager id: detect-package-manager diff --git "a/docs/blog/zh-Hans/2023/11/10/velero\347\232\204\344\275\277\347\224\250.md" "b/docs/blog/zh-Hans/2023/11/10/velero\347\232\204\344\275\277\347\224\250.md" index 416a9406e63..9946ea53c64 100644 --- "a/docs/blog/zh-Hans/2023/11/10/velero\347\232\204\344\275\277\347\224\250.md" +++ "b/docs/blog/zh-Hans/2023/11/10/velero\347\232\204\344\275\277\347\224\250.md" @@ -5,7 +5,7 @@ authors: [xiao-jay] tags: [kubernetes,sealos] --- -## velero的使用111 +## velero的使用 文档:https://velero.io/ diff --git a/docs/website/Dockerfile b/docs/website/Dockerfile index ae8283aa40a..921c2146049 100644 --- a/docs/website/Dockerfile +++ b/docs/website/Dockerfile @@ -8,13 +8,6 @@ WORKDIR /app COPY . /app -RUN mkdir website/i18n/zh-Hans/docusaurus-plugin-content-docs/; \ - cp -r 4.0/i18n/zh-Hans/ website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/; \ - cp 4.0/i18n/zh-Hans/current.json website/i18n/zh-Hans/docusaurus-plugin-content-docs/current.json; \ - cp 4.0/code.json website/i18n/zh-Hans/code.json; \ - mkdir website/i18n/zh-Hans/docusaurus-plugin-content-blog/; \ - cp -r blog/zh-Hans/ website/i18n/zh-Hans/docusaurus-plugin-content-blog; \ - cp blog/zh-Hans/options.json website/i18n/zh-Hans/docusaurus-plugin-content-blog/options.json WORKDIR /app/website RUN yarn install diff --git a/docs/website/package.json b/docs/website/package.json index 833db2fa319..ae85dc91d37 100644 --- a/docs/website/package.json +++ b/docs/website/package.json @@ -3,7 +3,7 @@ "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 && mkdir -p i18n/zh-Hans/docusaurus-plugin-content-blog && cp -r ../blog/zh-Hans/ i18n/zh-Hans/docusaurus-plugin-content-blog && cp ../blog/zh-Hans/options.json i18n/zh-Hans/docusaurus-plugin-content-blog/options.json", + "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 && mkdir -p i18n/zh-Hans/docusaurus-plugin-content-blog && cp -r ../blog/zh-Hans/* i18n/zh-Hans/docusaurus-plugin-content-blog/ && cp ../blog/zh-Hans/options.json i18n/zh-Hans/docusaurus-plugin-content-blog/options.json", "docusaurus": "docusaurus", "start": "yarn sync-zh-files && tsc && docusaurus start", "start-zh": "yarn sync-zh-files && tsc && docusaurus start --locale zh-Hans",