|
1 | 1 | import fs from 'fs' |
2 | 2 | import path from 'path' |
3 | | -import { defineConfigWithTheme, type HeadConfig, type Plugin } 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 | import llmstxt from 'vitepress-plugin-llms' |
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 | { |
@@ -50,7 +57,10 @@ const nav: ThemeConfig['nav'] = [ |
50 | 57 | { text: 'Developers', link: '/developers/' }, |
51 | 58 | { text: 'Themes', link: '/ecosystem/themes' }, |
52 | 59 | { text: 'UI Components', link: 'https://ui-libs.vercel.app/' }, |
53 | | - { text: 'Plugins Collection', link: 'https://www.vue-plugins.org/' }, |
| 60 | + { |
| 61 | + text: 'Plugins Collection', |
| 62 | + link: 'https://www.vue-plugins.org/' |
| 63 | + }, |
54 | 64 | { |
55 | 65 | text: 'Certification', |
56 | 66 | link: 'https://certificates.dev/vuejs/?ref=vuejs-nav' |
@@ -494,7 +504,7 @@ export const sidebar: ThemeConfig['sidebar'] = { |
494 | 504 | { |
495 | 505 | text: 'List with Transitions', |
496 | 506 | link: '/examples/#list-transition' |
497 | | - }, |
| 507 | + } |
498 | 508 | ] |
499 | 509 | }, |
500 | 510 | { |
@@ -634,8 +644,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
634 | 644 | src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top', |
635 | 645 | async: 'true' |
636 | 646 | } |
637 | | - ], |
638 | | - inlineScript('perfops.js') |
| 647 | + ] |
639 | 648 | ], |
640 | 649 |
|
641 | 650 | themeConfig: { |
@@ -708,7 +717,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
708 | 717 | { |
709 | 718 | link: 'https://pl.vuejs.org', |
710 | 719 | text: 'Polski', |
711 | | - repo: 'https://github.com/vuejs-translations/docs-pl', |
| 720 | + repo: 'https://github.com/vuejs-translations/docs-pl' |
712 | 721 | }, |
713 | 722 | { |
714 | 723 | link: '/translations/', |
@@ -754,8 +763,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
754 | 763 | markdown: { |
755 | 764 | theme: 'github-dark', |
756 | 765 | config(md) { |
757 | | - md.use(headerPlugin) |
758 | | - .use(groupIconMdPlugin) |
| 766 | + md.use(headerPlugin).use(groupIconMdPlugin) |
759 | 767 | // .use(textAdPlugin) |
760 | 768 | } |
761 | 769 | }, |
|
0 commit comments