Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskang committed Jan 12, 2023
1 parent fb93b28 commit a4132f7
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 545 deletions.
189 changes: 0 additions & 189 deletions docs/.vitepress/components/MdvueDemo.jsx

This file was deleted.

21 changes: 10 additions & 11 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import { defineConfig } from 'vitepress'
import Inspect from 'vite-plugin-inspect'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { MditVuePreview } from './md/plugin'
import MarkdownPreview from 'vite-plugin-markdown-preview'
// import Inspect from 'vite-plugin-inspect'

export default defineConfig({
lang: 'zh-CN',
title: 'Elenext',
description: 'Vite & Vue powered static site generator.',
lastUpdated: true,
markdown: {
lineNumbers: true,
// theme: 'github-light',
},
vite: {
plugins: [MditVuePreview(), vueJsx(), Inspect()],
plugins: [vueJsx(), MarkdownPreview()],
},
themeConfig: {
nav: [
Expand All @@ -25,11 +21,14 @@ export default defineConfig({
],
sidebar: [
{
text: '组件',
text: '基础组件',
items: [{ text: 'Button 按钮', link: '/components/button' }],
},
{
text: '表单输入',
items: [
{ text: 'button', link: '/components/button' },
{ text: 'checkbox', link: '/components/checkbox' },
{ text: 'radio', link: '/components/radio' },
{ text: 'Checkbox 多选框', link: '/components/checkbox' },
{ text: 'Radio 单选框', link: '/components/radio' },
],
},
],
Expand Down
139 changes: 0 additions & 139 deletions docs/.vitepress/md/plugin.ts

This file was deleted.

7 changes: 2 additions & 5 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import DefaultTheme from 'vitepress/theme'
import { plugin } from '../../../src'
import MdvueDemo from '../components/MdvueDemo.jsx'

import Elenext from '../../../src'
export default {
...DefaultTheme,
enhanceApp(ctx) {
DefaultTheme.enhanceApp(ctx)
ctx.app.component('VueDoc', MdvueDemo)
ctx.app.use(plugin)
ctx.app.use(Elenext)
},
}
Loading

0 comments on commit a4132f7

Please sign in to comment.