From 32b52f111d9c2f9fdd729ea6db2f69dd5aac7927 Mon Sep 17 00:00:00 2001 From: Jun Shindo <46585162+jay-es@users.noreply.github.com> Date: Fri, 12 Sep 2025 19:51:45 +0900 Subject: [PATCH] delete perfops script --- .vitepress/config.ts | 26 +++++++++++++++++--------- .vitepress/inlined-scripts/perfops.js | 9 --------- 2 files changed, 17 insertions(+), 18 deletions(-) delete mode 100644 .vitepress/inlined-scripts/perfops.js diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 564e6771d..c28126121 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -1,12 +1,19 @@ import fs from 'fs' import path from 'path' -import { defineConfigWithTheme, type HeadConfig } from 'vitepress' +import { + defineConfigWithTheme, + type HeadConfig, + type Plugin +} from 'vitepress' import type { Config as ThemeConfig } from '@vue/theme' import baseConfig from '@vue/theme/config' import { headerPlugin } from './headerMdPlugin' // import { textAdPlugin } from './textAdMdPlugin' -import { groupIconMdPlugin,groupIconVitePlugin } from 'vitepress-plugin-group-icons' +import { + groupIconMdPlugin, + groupIconVitePlugin +} from 'vitepress-plugin-group-icons' const nav: ThemeConfig['nav'] = [ { @@ -49,7 +56,10 @@ const nav: ThemeConfig['nav'] = [ { text: 'パートナー', link: '/partners/' }, { text: 'テーマ', link: '/ecosystem/themes' }, { text: 'UI コンポーネント', link: 'https://ui-libs.vercel.app/' }, - { text: 'プラグインコレクション', link: 'https://www.vue-plugins.org/' }, + { + text: 'プラグインコレクション', + link: 'https://www.vue-plugins.org/' + }, { text: '検定', link: 'https://certificates.dev/vuejs/?ref=vuejs-nav' @@ -493,7 +503,7 @@ export const sidebar: ThemeConfig['sidebar'] = { { text: 'List with Transitions', link: '/examples/#list-transition' - }, + } ] }, { @@ -668,8 +678,7 @@ export default defineConfigWithTheme({ src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top', async: 'true' } - ], - inlineScript('perfops.js') + ] ], themeConfig: { @@ -741,7 +750,7 @@ export default defineConfigWithTheme({ { link: 'https://pl.vuejs.org', text: 'Polski', - repo: 'https://github.com/vuejs-translations/docs-pl', + repo: 'https://github.com/vuejs-translations/docs-pl' }, { link: '/translations/', @@ -787,8 +796,7 @@ export default defineConfigWithTheme({ markdown: { theme: 'github-dark', config(md) { - md.use(headerPlugin) - .use(groupIconMdPlugin) + md.use(headerPlugin).use(groupIconMdPlugin) // .use(textAdPlugin) } }, diff --git a/.vitepress/inlined-scripts/perfops.js b/.vitepress/inlined-scripts/perfops.js deleted file mode 100644 index 381ff494a..000000000 --- a/.vitepress/inlined-scripts/perfops.js +++ /dev/null @@ -1,9 +0,0 @@ -;((d) => { - window.rum = { key: 'a9efvfeu' } - var script = d.createElement('script') - script.src = '/rom3.min.js' - script.type = 'text/javascript' - script.defer = true - script.async = true - d.getElementsByTagName('head')[0].appendChild(script) -})(document)