|
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,6 +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/' }, |
| 60 | + { |
| 61 | + text: 'Plugins Collection', |
| 62 | + link: 'https://www.vue-plugins.org/' |
| 63 | + }, |
53 | 64 | { |
54 | 65 | text: 'Certification', |
55 | 66 | link: 'https://certificates.dev/vuejs/?ref=vuejs-nav' |
@@ -128,13 +139,9 @@ const nav: ThemeConfig['nav'] = [ |
128 | 139 | link: '/sponsor/' |
129 | 140 | }, |
130 | 141 | { |
131 | | - text: 'Experts', |
132 | | - badge: { text: 'NEW' }, |
133 | | - activeMatch: `^/(partners|developers)/`, |
134 | | - items: [ |
135 | | - { text: 'Partners', link: '/partners/' }, |
136 | | - { text: 'Developers', link: '/developers/', badge: { text: 'NEW' } } |
137 | | - ] |
| 142 | + text: 'Partners', |
| 143 | + activeMatch: `^/partners/`, |
| 144 | + link: '/partners/' |
138 | 145 | } |
139 | 146 | ] |
140 | 147 |
|
@@ -497,7 +504,7 @@ export const sidebar: ThemeConfig['sidebar'] = { |
497 | 504 | { |
498 | 505 | text: 'List with Transitions', |
499 | 506 | link: '/examples/#list-transition' |
500 | | - }, |
| 507 | + } |
501 | 508 | ] |
502 | 509 | }, |
503 | 510 | { |
@@ -637,8 +644,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
637 | 644 | src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top', |
638 | 645 | async: 'true' |
639 | 646 | } |
640 | | - ], |
641 | | - inlineScript('perfops.js') |
| 647 | + ] |
642 | 648 | ], |
643 | 649 |
|
644 | 650 | themeConfig: { |
@@ -711,7 +717,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
711 | 717 | { |
712 | 718 | link: 'https://pl.vuejs.org', |
713 | 719 | text: 'Polski', |
714 | | - repo: 'https://github.com/vuejs-translations/docs-pl', |
| 720 | + repo: 'https://github.com/vuejs-translations/docs-pl' |
715 | 721 | }, |
716 | 722 | { |
717 | 723 | link: '/translations/', |
@@ -757,8 +763,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
757 | 763 | markdown: { |
758 | 764 | theme: 'github-dark', |
759 | 765 | config(md) { |
760 | | - md.use(headerPlugin) |
761 | | - .use(groupIconMdPlugin) |
| 766 | + md.use(headerPlugin).use(groupIconMdPlugin) |
762 | 767 | // .use(textAdPlugin) |
763 | 768 | } |
764 | 769 | }, |
|
0 commit comments