Skip to content

Commit b0984b0

Browse files
committed
- Restore doc folder
1 parent 63a6664 commit b0984b0

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path');
22

33
module.exports = {
4-
stories: ['../packages/**/*.stories.[tj]s'],
4+
stories: ['../packages/**/doc/*.stories.[tj]s'],
55
presets: [path.resolve(__dirname, './custom-presets')],
66
};

.storybook/preview.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { addDecorator } from "@storybook/html";
2-
import { createApp } from "vue";
3-
import "../src/style/element-ui@2.13.2.css";
1+
import { addDecorator } from '@storybook/html';
2+
import { createApp } from 'vue';
3+
import '../src/style/element-ui@2.13.2.css';
44
/**
55
* Wraps a story into a Vue Element
66
* @param {JSX.Element} template - Story templates
@@ -26,8 +26,8 @@ function CustomDecorator(content) {
2626
const { template, installer } = content();
2727
const app = createApp(Wrapper(template));
2828
installer(app);
29-
const entry = document.createElement("div");
30-
entry.className = "element-plus-previewer";
29+
const entry = document.createElement('div');
30+
entry.className = 'element-plus-previewer';
3131
app.mount(entry);
3232
return entry;
3333
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ElButton from './index';
1+
import ElButton from '../index';
22

33
export default {
44
title: 'Button',

scripts/gc.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ NAME=$NORMALIZED_NAME
2727

2828
mkdir -p "$DIRNAME"
2929
mkdir -p "$DIRNAME/src"
30+
mkdir -p "$DIRNAME/doc"
3031

3132
cat <<EOF >"$DIRNAME/index.ts"
3233
import { App } from 'vue'
@@ -54,8 +55,8 @@ export default {
5455
5556
EOF
5657

57-
cat <<EOF >"$DIRNAME/index.stories.js"
58-
import El${NAME} from './index'
58+
cat <<EOF >"$DIRNAME/doc/index.stories.js"
59+
import El${NAME} from '../index'
5960
6061
export default {
6162
title: "${NAME}"

0 commit comments

Comments
 (0)