Skip to content

Commit

Permalink
fix: fixed docs build [WTEL-3840]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Nov 22, 2023
1 parent a413517 commit 628c8f0
Show file tree
Hide file tree
Showing 20 changed files with 11,153 additions and 6,797 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Easy Zip Files
uses: vimtor/[email protected]
with:
files: docs-dist/
files: docs/.vitepress/dist/
dest: docs.zip


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
8 changes: 5 additions & 3 deletions docs/.vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script setup>
import { useData } from 'vitepress';
import DefaultTheme from 'vitepress/theme';
import { provide } from 'vue';
import { onMounted, provide } from 'vue';

const { isDark } = useData();

Expand All @@ -13,12 +13,14 @@ const toggleComponentsDarkTheme = (value) => {
else html.classList.remove('theme--dark');
};

toggleComponentsDarkTheme(isDark.value);

provide('toggle-appearance', () => {
isDark.value = !isDark.value;
toggleComponentsDarkTheme(isDark.value);
});

onMounted(() => {
toggleComponentsDarkTheme(isDark.value);
});
</script>

<template>
Expand Down

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 628c8f0

Please sign in to comment.