Skip to content

Commit

Permalink
ci: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KouSum committed Nov 26, 2023
1 parent 529a13b commit dcb5686
Show file tree
Hide file tree
Showing 18 changed files with 1,038 additions and 2,100 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/node.js2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm install pnpm -g
- run: pnpm install
- run: pnpm build:lib
- run: pnpm build-storybook:vite
# - run: pnpm build:lib
# - run: pnpm build-storybook:vite
- run: pnpm docs:build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./storybook-static
source: ./docs/.vitepress/dist
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Expand Down
30 changes: 30 additions & 0 deletions docs/.vitepress/theme/layout/InlineSvg.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script setup lang="ts">
import {ref} from 'vue'
defineOptions({})
interface Props {
svg?: string,
}
const props = withDefaults(defineProps<Props>(), {})
const emit = defineEmits<{
// eslint-disable-next-line no-unused-vars
(e: 'row-click', row: any, column: any, event: PointerEvent): void,
}>()
const count = ref(0)
</script>
<script lang="ts">
export default {
name: 'InlineSvg'
}
</script>
<template>
<div v-html="svg"></div>
</template>

<style scoped>
</style>
Loading

0 comments on commit dcb5686

Please sign in to comment.