From 628c8f0af9c397fd0a98f087ac521d35e205342d Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Wed, 22 Nov 2023 22:45:28 +0200 Subject: [PATCH] fix: fixed docs build [WTEL-3840] --- .github/workflows/release.yml | 6 +- .github/workflows/test.yml | 2 +- docs/.vitepress/config.mjs | 7 + docs/.vitepress/theme/Layout.vue | 8 +- .../md/cleanup-icons/cleanup-icons.en.md | 28 - .../md/cleanup-icons/cleanup-icons.ru.md | 28 - .../wt-icon/md/cleanup-icons/img.png | Bin 7800 -> 0 bytes .../wt-icon/md/cleanup-icons/index.js | 6 - .../how-does-it-work/how-does-it-work.en.md | 44 - .../how-does-it-work/how-does-it-work.ru.md | 42 - .../wt-icon/md/how-does-it-work/index.js | 6 - ...w-to-install-custom-icons-to-project.en.md | 27 - ...w-to-install-custom-icons-to-project.ru.md | 28 - .../index.js | 8 - .../icons-naming-convention.en.md | 18 - .../icons-naming-convention.ru.md | 19 - .../md/icons-naming-convention/index.js | 8 - package-lock.json | 17653 ++++++++++------ package.json | 8 +- src/components/wt-label/wt-label.vue | 4 - 20 files changed, 11153 insertions(+), 6797 deletions(-) delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/cleanup-icons/cleanup-icons.en.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/cleanup-icons/cleanup-icons.ru.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/cleanup-icons/img.png delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/cleanup-icons/index.js delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/how-does-it-work/how-does-it-work.en.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/how-does-it-work/how-does-it-work.ru.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/how-does-it-work/index.js delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/how-to-install-custom-icons-to-project/how-to-install-custom-icons-to-project.en.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/how-to-install-custom-icons-to-project/how-to-install-custom-icons-to-project.ru.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/how-to-install-custom-icons-to-project/index.js delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/icons-naming-convention/icons-naming-convention.en.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/icons-naming-convention/icons-naming-convention.ru.md delete mode 100644 docs/pages/webitel-ui/components/wt-icon/md/icons-naming-convention/index.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd0651b05..f41b85ac5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,11 +12,11 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: '20.x' - run: npm ci - run: npm run test:unit # - run: npm run build - - run: npm run styleguide:build + - run: npm run docs:build - name: get-npm-version id: package-version @@ -25,7 +25,7 @@ jobs: - name: Easy Zip Files uses: vimtor/action-zip@v1.1 with: - files: docs-dist/ + files: docs/.vitepress/dist/ dest: docs.zip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bb115a27..7bb7db811 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,6 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: '20.x' - run: npm ci - run: npm run test:unit diff --git a/docs/.vitepress/config.mjs b/docs/.vitepress/config.mjs index 91123c76c..0fd8be104 100644 --- a/docs/.vitepress/config.mjs +++ b/docs/.vitepress/config.mjs @@ -12,6 +12,13 @@ export default defineConfig({ title: 'Webitel UI', description: 'Webitel UI docs', vite: { + ssr: { + noExternal: [ + '@vuelidate/core', + 'vue-multiselect', + 'webitel-sdk', + ], + }, css: { preprocessorOptions: { scss: { diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue index 4aaa285f5..0a2855ddc 100644 --- a/docs/.vitepress/theme/Layout.vue +++ b/docs/.vitepress/theme/Layout.vue @@ -3,7 +3,7 @@