Skip to content

Commit

Permalink
refactor(config): refactor config for vitepress@latest
Browse files Browse the repository at this point in the history
Related Issues: DevCloudFE#1879
  • Loading branch information
fu050409 committed Jun 21, 2024
1 parent 82967e6 commit ab4cd16
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 80 deletions.
4 changes: 0 additions & 4 deletions packages/devui-vue/docs/.vitepress/config.js

This file was deleted.

54 changes: 54 additions & 0 deletions packages/devui-vue/docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { defineConfig } from 'vitepress';
import head from './config/head';
import nav from './config/nav';
import sidebar from './config/sidebar';
import { demoblockPlugin, demoblockVitePlugin } from 'vitepress-theme-demoblock';

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Vue DevUI',
description: 'Vue DevUI 组件库',

head,
markdown: {
config: (md) => {
md.use(demoblockPlugin as any);
}
},
vite: {
plugins: [demoblockVitePlugin() as any],
},

locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
},
en: {
label: 'English',
lang: 'en-US',
link: '/en-US/',
},
},

themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav,
sidebar,

logo: '../../assets/logo.svg',

algolia: {
appId: 'HOQD3NUZNM',
apiKey: '07456b4a262e8c84eb892088e5cc3791',
indexName: 'vue-devui',
},

socialLinks: [{ icon: 'github', link: 'https://github.com/DevCloudFE/vue-devui' }],

footer: {
message: 'MIT Licensed',
copyright: 'Copyright © 2021-present DevCloudFE',
},
},
});
46 changes: 0 additions & 46 deletions packages/devui-vue/docs/.vitepress/config/index.ts

This file was deleted.

16 changes: 0 additions & 16 deletions packages/devui-vue/docs/.vitepress/config/lang.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/devui-vue/docs/.vitepress/config/markdown.ts

This file was deleted.

0 comments on commit ab4cd16

Please sign in to comment.