Skip to content

Commit

Permalink
docs: semi .mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
KouSum committed Nov 26, 2023
1 parent e81ad16 commit 6887a77
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
- run: pnpm install
# - run: pnpm build:lib
# - run: pnpm build-storybook:vite
- run: pnpm docs:build
- run: pnpm build:mjs
- run: pnpm docs:build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ coverage/
/docs/.vitepress/dist/
/docs/src/public/semi-ui-vue.mjs
/docs/src/public/style.css
/docs/src/public/semi/
/docs/.vitepress/semi-design-vue/
3 changes: 2 additions & 1 deletion .idea/semi-design-vue.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
title: 'semi-design-vue',
description: 'Vue3 UI components based on semi-design and Vue',
srcDir: 'src',
outDir:'./.vitepress/semi-design-vue',
vite:{
plugins: [Jsx()],
// optimizeDeps: {
Expand Down
4 changes: 2 additions & 2 deletions docs/LiveCodeClient.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const store = new ReplStore({
const previewOptions = {
headHTML: `<link rel="stylesheet" href="${import.meta.env.BASE_URL}style.css" data-n-g="">`
headHTML: `<link rel="stylesheet" href="${import.meta.env.BASE_URL}semi/style.css" data-n-g="">`
}
// persist state to URL hash
// watchEffect(() => history.replaceState({}, '', store.serialize()))
// pre-set import map
store.setImportMap({
imports: {
"@kousum/semi-ui-vue": import.meta.env.BASE_URL + 'semi-ui-vue.mjs',
"@kousum/semi-ui-vue": import.meta.env.BASE_URL + 'semi/semi-ui-vue.mjs',
},
})
// use a specific version of Vue
Expand Down

0 comments on commit 6887a77

Please sign in to comment.