|
1 | 1 | import fs from 'fs' |
2 | 2 | import path from 'path' |
3 | | -import { defineConfigWithTheme, type HeadConfig } from 'vitepress' |
| 3 | +import { |
| 4 | + defineConfigWithTheme, |
| 5 | + type HeadConfig, |
| 6 | + type Plugin |
| 7 | +} from 'vitepress' |
4 | 8 | import type { Config as ThemeConfig } from '@vue/theme' |
5 | 9 |
|
6 | 10 | import baseConfig from '@vue/theme/config' |
7 | 11 | import { headerPlugin } from './headerMdPlugin' |
8 | 12 | // import { textAdPlugin } from './textAdMdPlugin' |
9 | | -import { groupIconMdPlugin,groupIconVitePlugin } from 'vitepress-plugin-group-icons' |
| 13 | +import { |
| 14 | + groupIconMdPlugin, |
| 15 | + groupIconVitePlugin |
| 16 | +} from 'vitepress-plugin-group-icons' |
10 | 17 |
|
11 | 18 | const nav: ThemeConfig['nav'] = [ |
12 | 19 | { |
@@ -49,7 +56,10 @@ const nav: ThemeConfig['nav'] = [ |
49 | 56 | { text: 'パートナー', link: '/partners/' }, |
50 | 57 | { text: 'テーマ', link: '/ecosystem/themes' }, |
51 | 58 | { text: 'UI コンポーネント', link: 'https://ui-libs.vercel.app/' }, |
52 | | - { text: 'プラグインコレクション', link: 'https://www.vue-plugins.org/' }, |
| 59 | + { |
| 60 | + text: 'プラグインコレクション', |
| 61 | + link: 'https://www.vue-plugins.org/' |
| 62 | + }, |
53 | 63 | { |
54 | 64 | text: '検定', |
55 | 65 | link: 'https://certificates.dev/vuejs/?ref=vuejs-nav' |
@@ -493,7 +503,7 @@ export const sidebar: ThemeConfig['sidebar'] = { |
493 | 503 | { |
494 | 504 | text: 'List with Transitions', |
495 | 505 | link: '/examples/#list-transition' |
496 | | - }, |
| 506 | + } |
497 | 507 | ] |
498 | 508 | }, |
499 | 509 | { |
@@ -668,8 +678,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
668 | 678 | src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top', |
669 | 679 | async: 'true' |
670 | 680 | } |
671 | | - ], |
672 | | - inlineScript('perfops.js') |
| 681 | + ] |
673 | 682 | ], |
674 | 683 |
|
675 | 684 | themeConfig: { |
@@ -741,7 +750,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
741 | 750 | { |
742 | 751 | link: 'https://pl.vuejs.org', |
743 | 752 | text: 'Polski', |
744 | | - repo: 'https://github.com/vuejs-translations/docs-pl', |
| 753 | + repo: 'https://github.com/vuejs-translations/docs-pl' |
745 | 754 | }, |
746 | 755 | { |
747 | 756 | link: '/translations/', |
@@ -787,8 +796,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
787 | 796 | markdown: { |
788 | 797 | theme: 'github-dark', |
789 | 798 | config(md) { |
790 | | - md.use(headerPlugin) |
791 | | - .use(groupIconMdPlugin) |
| 799 | + md.use(headerPlugin).use(groupIconMdPlugin) |
792 | 800 | // .use(textAdPlugin) |
793 | 801 | } |
794 | 802 | }, |
|
0 commit comments