|
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,11 @@ const nav: ThemeConfig['nav'] = [ |
50 | 57 | { text: 'Développeurs', link: '/developers/' }, |
51 | 58 | { text: 'Thèmes', link: '/ecosystem/themes' }, |
52 | 59 | { text: 'Composants UI', link: 'https://ui-libs.vercel.app/' }, |
| 60 | + { text: 'Collection de plugins', link: 'https://www.vue-plugins.org/' }, |
| 61 | + { |
| 62 | + text: 'Collection de plugins', |
| 63 | + link: 'https://www.vue-plugins.org/' |
| 64 | + }, |
53 | 65 | { |
54 | 66 | text: 'Certification', |
55 | 67 | link: 'https://certificates.dev/vuejs/?ref=vuejs-nav' |
@@ -134,13 +146,9 @@ const nav: ThemeConfig['nav'] = [ |
134 | 146 | link: '/sponsor/' |
135 | 147 | }, |
136 | 148 | { |
137 | | - text: 'Experts', |
138 | | - badge: { text: 'NEW' }, |
139 | | - activeMatch: `^/(partners|developers)/`, |
140 | | - items: [ |
141 | | - { text: 'Partenaires', link: '/partners/' }, |
142 | | - { text: 'Développeurs', link: '/developers/', badge: { text: 'NEW' } } |
143 | | - ] |
| 149 | + text: 'Partenaires', |
| 150 | + activeMatch: `^/partners/`, |
| 151 | + link: '/partners/' |
144 | 152 | } |
145 | 153 | ] |
146 | 154 |
|
@@ -695,8 +703,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
695 | 703 | src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top', |
696 | 704 | async: 'true' |
697 | 705 | } |
698 | | - ], |
699 | | - inlineScript('perfops.js') |
| 706 | + ] |
700 | 707 | ], |
701 | 708 |
|
702 | 709 | themeConfig: { |
@@ -768,7 +775,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
768 | 775 | { |
769 | 776 | link: 'https://pl.vuejs.org', |
770 | 777 | text: 'Polski', |
771 | | - repo: 'https://github.com/vuejs-translations/docs-pl', |
| 778 | + repo: 'https://github.com/vuejs-translations/docs-pl' |
772 | 779 | }, |
773 | 780 | { |
774 | 781 | link: '/translations/', |
@@ -811,8 +818,7 @@ export default defineConfigWithTheme<ThemeConfig>({ |
811 | 818 | markdown: { |
812 | 819 | theme: 'github-dark', |
813 | 820 | config(md) { |
814 | | - md.use(headerPlugin) |
815 | | - .use(groupIconMdPlugin) |
| 821 | + md.use(headerPlugin).use(groupIconMdPlugin) |
816 | 822 | // .use(textAdPlugin) |
817 | 823 | } |
818 | 824 | }, |
|
0 commit comments