11import fs from 'fs'
22import 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'
48import type { Config as ThemeConfig } from '@vue/theme'
59import llmstxt from 'vitepress-plugin-llms'
610import baseConfig from '@vue/theme/config'
711import { headerPlugin } from './headerMdPlugin'
812// 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'
1017
1118const nav : ThemeConfig [ 'nav' ] = [
1219 {
@@ -47,9 +54,12 @@ const nav: ThemeConfig['nav'] = [
4754 text : 'Ресурсы' ,
4855 items : [
4956 { text : 'Партнёры' , link : '/partners/' } ,
50- { text : 'Разработчики' , link : '/developers/' } ,
5157 { text : 'Темы' , link : '/ecosystem/themes' } ,
5258 { text : 'UI компоненты' , link : 'https://ui-libs.vercel.app/' } ,
59+ {
60+ text : 'Plugins Collection' ,
61+ link : 'https://www.vue-plugins.org/'
62+ } ,
5363 {
5464 text : 'Сертификация' ,
5565 link : 'https://certificates.dev/vuejs/?ref=vuejs-nav'
@@ -97,7 +107,7 @@ const nav: ThemeConfig['nav'] = [
97107 text : 'Новости' ,
98108 items : [
99109 { text : 'Блог' , link : 'https://blog.vuejs.org/' } ,
100- { text : 'Twitter' , link : 'https://twitter .com/vuejs' } ,
110+ { text : 'Twitter' , link : 'https://x .com/vuejs' } ,
101111 { text : 'События' , link : 'https://events.vuejs.org/' } ,
102112 { text : 'Рассылка' , link : '/ecosystem/newsletters' }
103113 ]
@@ -128,13 +138,9 @@ const nav: ThemeConfig['nav'] = [
128138 link : '/sponsor/'
129139 } ,
130140 {
131- text : 'Эксперты' ,
132- badge : { text : 'NEW' } ,
133- activeMatch : `^/(partners|developers)/` ,
134- items : [
135- { text : 'Партнёры' , link : '/partners/' } ,
136- { text : 'Разработчики' , link : '/developers/' , badge : { text : 'NEW' } }
137- ]
141+ text : 'Партнёры' ,
142+ activeMatch : `^/partners/` ,
143+ link : '/partners/'
138144 }
139145]
140146
@@ -497,7 +503,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
497503 {
498504 text : 'List with Transitions' ,
499505 link : '/examples/#list-transition'
500- } ,
506+ }
501507 ]
502508 } ,
503509 {
@@ -666,11 +672,10 @@ export default defineConfigWithTheme<ThemeConfig>({
666672 [
667673 'script' ,
668674 {
669- src : 'https://vueschool.io/banner .js?affiliate =vuejs&type=top' ,
675+ src : 'https://media.bitterbrains.com/main .js?from =vuejs&type=top' ,
670676 async : 'true'
671677 }
672- ] ,
673- inlineScript ( 'perfops.js' )
678+ ]
674679 ] ,
675680
676681 themeConfig : {
@@ -747,7 +752,7 @@ export default defineConfigWithTheme<ThemeConfig>({
747752 {
748753 link : 'https://pl.vuejs.org' ,
749754 text : 'Polski' ,
750- repo : 'https://github.com/vuejs-translations/docs-pl' ,
755+ repo : 'https://github.com/vuejs-translations/docs-pl'
751756 } ,
752757 {
753758 link : '/translations/' ,
@@ -759,7 +764,10 @@ export default defineConfigWithTheme<ThemeConfig>({
759764 algolia : {
760765 indexName : 'ru-vuejs' ,
761766 appId : '5RTQ6TI35H' ,
762- apiKey : 'c4095d6d1e93c25ca93b3ca0030338ef' ,
767+ apiKey : '6c41323bbf7fa04b372c087ed69cc3ba' ,
768+ searchParameters : {
769+ facetFilters : [ 'version:v3' ]
770+ }
763771 } ,
764772
765773 // carbonAds: {
@@ -769,7 +777,7 @@ export default defineConfigWithTheme<ThemeConfig>({
769777
770778 socialLinks : [
771779 { icon : 'github' , link : 'https://github.com/vuejs/' } ,
772- { icon : 'twitter' , link : 'https://twitter .com/vuejs' } ,
780+ { icon : 'twitter' , link : 'https://x .com/vuejs' } ,
773781 { icon : 'discord' , link : 'https://discord.com/invite/vue' }
774782 ] ,
775783
@@ -790,8 +798,7 @@ export default defineConfigWithTheme<ThemeConfig>({
790798 markdown : {
791799 theme : 'github-dark' ,
792800 config ( md ) {
793- md . use ( headerPlugin )
794- . use ( groupIconMdPlugin )
801+ md . use ( headerPlugin ) . use ( groupIconMdPlugin )
795802 // .use(textAdPlugin)
796803 }
797804 } ,
0 commit comments