Skip to content

Commit a689958

Browse files
authored
delete perfops script (#2653)
1 parent 467cdb3 commit a689958

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.vitepress/config.ts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
import fs from 'fs'
22
import path from 'path'
3-
import { defineConfigWithTheme, type HeadConfig } from 'vitepress'
3+
import {
4+
defineConfigWithTheme,
5+
type HeadConfig,
6+
type Plugin
7+
} from 'vitepress'
48
import type { Config as ThemeConfig } from '@vue/theme'
59

610
import baseConfig from '@vue/theme/config'
711
import { 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

1118
const nav: ThemeConfig['nav'] = [
1219
{
@@ -49,7 +56,10 @@ const nav: ThemeConfig['nav'] = [
4956
{ text: 'パートナー', link: '/partners/' },
5057
{ text: 'テーマ', link: '/ecosystem/themes' },
5158
{ 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+
},
5363
{
5464
text: '検定',
5565
link: 'https://certificates.dev/vuejs/?ref=vuejs-nav'
@@ -493,7 +503,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
493503
{
494504
text: 'List with Transitions',
495505
link: '/examples/#list-transition'
496-
},
506+
}
497507
]
498508
},
499509
{
@@ -668,8 +678,7 @@ export default defineConfigWithTheme<ThemeConfig>({
668678
src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top',
669679
async: 'true'
670680
}
671-
],
672-
inlineScript('perfops.js')
681+
]
673682
],
674683

675684
themeConfig: {
@@ -741,7 +750,7 @@ export default defineConfigWithTheme<ThemeConfig>({
741750
{
742751
link: 'https://pl.vuejs.org',
743752
text: 'Polski',
744-
repo: 'https://github.com/vuejs-translations/docs-pl',
753+
repo: 'https://github.com/vuejs-translations/docs-pl'
745754
},
746755
{
747756
link: '/translations/',
@@ -787,8 +796,7 @@ export default defineConfigWithTheme<ThemeConfig>({
787796
markdown: {
788797
theme: 'github-dark',
789798
config(md) {
790-
md.use(headerPlugin)
791-
.use(groupIconMdPlugin)
799+
md.use(headerPlugin).use(groupIconMdPlugin)
792800
// .use(textAdPlugin)
793801
}
794802
},

.vitepress/inlined-scripts/perfops.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)