chore: add docs

This commit is contained in:
zhuzhengjian 2023-04-08 10:08:35 +08:00
parent 163e29dfd1
commit bed231bfb2
11 changed files with 924 additions and 876 deletions

View File

@ -0,0 +1,13 @@
<docs>
---
title: Basic
---
这是基础按钮
</docs>
<script lang="ts" setup></script>
<template>
<div></div>
</template>

View File

@ -0,0 +1 @@
# Button

View File

@ -0,0 +1 @@
# Button 按钮

12
docs/index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Antd Tiny Vue</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

5
docs/src/App.vue Normal file
View File

@ -0,0 +1,5 @@
<script lang="ts" setup></script>
<template>
<router-view />
</template>

5
docs/src/main.ts Normal file
View File

@ -0,0 +1,5 @@
import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
app.mount('#app')

7
docs/src/pages/index.vue Normal file
View File

@ -0,0 +1,7 @@
<script lang="ts" setup></script>
<template>
<div>
<!-- -->
</div>
</template>

6
docs/vite.config.ts Normal file
View File

@ -0,0 +1,6 @@
import { defineConfig } from 'vite'
import vueJsxPlugin from '@vitejs/plugin-vue-jsx'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue(), vueJsxPlugin()]
})

View File

@ -28,6 +28,7 @@
"@mistjs/tsconfig": "^1.0.0", "@mistjs/tsconfig": "^1.0.0",
"@mistjs/tsconfig-vue": "^0.0.3", "@mistjs/tsconfig-vue": "^0.0.3",
"@types/node": "^18.15.9", "@types/node": "^18.15.9",
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-vue-jsx": "^3.0.1", "@vitejs/plugin-vue-jsx": "^3.0.1",
"eslint": "^8.36.0", "eslint": "^8.36.0",
"husky": "^8.0.3", "husky": "^8.0.3",
@ -35,9 +36,10 @@
"prettier": "^2.8.7", "prettier": "^2.8.7",
"typescript": "^4.9.5", "typescript": "^4.9.5",
"vite": "^4.2.1", "vite": "^4.2.1",
"vite-plugin-vitepress-demo": "2.0.0-alpha.8", "vite-plugin-vitepress-demo": "2.0.0-beta.26",
"vitepress": "1.0.0-alpha.63", "vitepress": "1.0.0-alpha.63",
"vitest": "^0.28.5" "vitest": "^0.28.5",
"vue-router": "^4.1.6"
}, },
"pnpm": { "pnpm": {
"peerDependencyRules": { "peerDependencyRules": {

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,7 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vueJsxPlugin from '@vitejs/plugin-vue-jsx' import vueJsxPlugin from '@vitejs/plugin-vue-jsx'
import { VitePluginVitepressDemo } from 'vite-plugin-vitepress-demo' import VitePluginVitepressDemo from 'vite-plugin-vitepress-demo'
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [vueJsxPlugin(), VitePluginVitepressDemo()]
vueJsxPlugin(),
VitePluginVitepressDemo({
glob: ['**/demos/**/*.vue']
})
]
}) })