From 087df250740e6a5718595f204a54a78738a5cf1e Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 10 Mar 2026 04:06:29 +0000
Subject: [PATCH 1/3] Initial plan
From e6c585c8f6fd39ff6543dbc69dbe1de46b9549c3 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 10 Mar 2026 04:14:05 +0000
Subject: [PATCH 2/3] fix: apply formatting fixes - convert double quotes to
single quotes in docs files
Co-authored-by: mdong1909 <220303712+mdong1909@users.noreply.github.com>
---
docs/.vitepress/config.mts | 656 +++++++++---------
docs/.vitepress/theme/Layout.vue | 2 +-
docs/.vitepress/theme/components/Footer.vue | 4 +-
docs/.vitepress/theme/components/Header.vue | 30 +-
.../theme/components/home/Terminal.vue | 4 +-
.../components/home/TerminalTranscript.vue | 6 +-
6 files changed, 351 insertions(+), 351 deletions(-)
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index fbf33a4ab1..193a87507d 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -1,38 +1,38 @@
-import { resolve } from "node:path";
+import { resolve } from 'node:path';
-import type { VoidZeroThemeConfig } from "@voidzero-dev/vitepress-theme";
-import { extendConfig } from "@voidzero-dev/vitepress-theme/config";
-import { defineConfig, type HeadConfig } from "vitepress";
+import type { VoidZeroThemeConfig } from '@voidzero-dev/vitepress-theme';
+import { extendConfig } from '@voidzero-dev/vitepress-theme/config';
+import { defineConfig, type HeadConfig } from 'vitepress';
// https://vitepress.dev/reference/site-config
export default extendConfig(
defineConfig({
- title: "Vite+",
- titleTemplate: ":title | The Unified Toolchain for the Web",
- description: "The Unified Toolchain for the Web",
+ title: 'Vite+',
+ titleTemplate: ':title | The Unified Toolchain for the Web',
+ description: 'The Unified Toolchain for the Web',
cleanUrls: true,
head: [
- ["link", { rel: "icon", type: "image/svg+xml", href: "/favicon.svg" }],
+ ['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }],
[
- "link",
+ 'link',
{
- rel: "preconnect",
- href: "https://fonts.gstatic.com",
- crossorigin: "true",
+ rel: 'preconnect',
+ href: 'https://fonts.gstatic.com',
+ crossorigin: 'true',
},
],
- ["meta", { name: "theme-color", content: "#7474FB" }],
- ["meta", { property: "og:type", content: "website" }],
- ["meta", { property: "og:site_name", content: "Vite+" }],
- ["meta", { name: "twitter:card", content: "summary_large_image" }],
- ["meta", { name: "twitter:site", content: "@voidzerodev" }],
+ ['meta', { name: 'theme-color', content: '#7474FB' }],
+ ['meta', { property: 'og:type', content: 'website' }],
+ ['meta', { property: 'og:site_name', content: 'Vite+' }],
+ ['meta', { name: 'twitter:card', content: 'summary_large_image' }],
+ ['meta', { name: 'twitter:site', content: '@voidzerodev' }],
[
- "script",
+ 'script',
{
- src: "https://cdn.usefathom.com/script.js",
- "data-site": "JFDLUWBH",
- "data-spa": "auto",
- defer: "",
+ src: 'https://cdn.usefathom.com/script.js',
+ 'data-site': 'JFDLUWBH',
+ 'data-spa': 'auto',
+ defer: '',
},
],
// ["script", {}, "document.documentElement.setAttribute('data-theme', 'light')"],
@@ -41,61 +41,61 @@ export default extendConfig(
resolve: {
tsconfigPaths: true,
alias: {
- "@local-assets": resolve(__dirname, "theme/assets"),
- "@layouts": resolve(__dirname, "theme/layouts"),
+ '@local-assets': resolve(__dirname, 'theme/assets'),
+ '@layouts': resolve(__dirname, 'theme/layouts'),
},
},
},
themeConfig: {
- variant: "viteplus" as VoidZeroThemeConfig["variant"],
+ variant: 'viteplus' as VoidZeroThemeConfig['variant'],
nav: [
{
- text: "Guide",
- activeMatch: "/vite/guide/",
+ text: 'Guide',
+ activeMatch: '/vite/guide/',
items: [
- { text: "Vite Core", link: "/vite/guide/" },
- { text: "Test", link: "/vite/guide/test/getting-started" },
- { text: "Lint", link: "/vite/guide/lint/getting-started" },
- { text: "Format", link: "/vite/guide/format/getting-started" },
- { text: "Task Runner", link: "/vite/guide/task/getting-started" },
- { text: "Library Bundler", link: "/lib/guide/getting-started" },
- { text: "DevTools", link: "/guide/devtools/getting-started" },
- { text: "Package Manager", link: "/guide/package-manager/getting-started" },
+ { text: 'Vite Core', link: '/vite/guide/' },
+ { text: 'Test', link: '/vite/guide/test/getting-started' },
+ { text: 'Lint', link: '/vite/guide/lint/getting-started' },
+ { text: 'Format', link: '/vite/guide/format/getting-started' },
+ { text: 'Task Runner', link: '/vite/guide/task/getting-started' },
+ { text: 'Library Bundler', link: '/lib/guide/getting-started' },
+ { text: 'DevTools', link: '/guide/devtools/getting-started' },
+ { text: 'Package Manager', link: '/guide/package-manager/getting-started' },
],
},
{
- text: "Config",
- activeMatch: "/config/",
+ text: 'Config',
+ activeMatch: '/config/',
items: [
- { text: "Vite Core", link: "/config/" },
- { text: "Test", link: "/config/test" },
- { text: "Lint", link: "/config/lint" },
- { text: "Format", link: "/config/format" },
- { text: "Task Runner", link: "/config/task" },
- { text: "Package Manager", link: "/config/package-manager" },
+ { text: 'Vite Core', link: '/config/' },
+ { text: 'Test', link: '/config/test' },
+ { text: 'Lint', link: '/config/lint' },
+ { text: 'Format', link: '/config/format' },
+ { text: 'Task Runner', link: '/config/task' },
+ { text: 'Package Manager', link: '/config/package-manager' },
],
},
{
- text: "APIs",
- activeMatch: "/apis/",
+ text: 'APIs',
+ activeMatch: '/apis/',
items: [
- { text: "Vite API", link: "/apis/" },
- { text: "Environment API", link: "/apis/environment" },
- { text: "Test API", link: "/apis/test" },
- { text: "Lint API", link: "/apis/lint" },
- { text: "Format API", link: "/apis/format" },
- { text: "Task Runner API", link: "/apis/task-runner" },
+ { text: 'Vite API', link: '/apis/' },
+ { text: 'Environment API', link: '/apis/environment' },
+ { text: 'Test API', link: '/apis/test' },
+ { text: 'Lint API', link: '/apis/lint' },
+ { text: 'Format API', link: '/apis/format' },
+ { text: 'Task Runner API', link: '/apis/task-runner' },
],
},
{
- text: "Plugins",
- activeMatch: "/plugins/",
+ text: 'Plugins',
+ activeMatch: '/plugins/',
items: [
- { text: "Vite Plugins", link: "/plugins/" },
- { text: "Test Plugins", link: "/plugins/test" },
- { text: "Lint Plugins", link: "/plugins/lint" },
- { text: "Format Plugins", link: "/plugins/format" },
- { text: "Task Runner Plugins", link: "/plugins/task-runner" },
+ { text: 'Vite Plugins', link: '/plugins/' },
+ { text: 'Test Plugins', link: '/plugins/test' },
+ { text: 'Lint Plugins', link: '/plugins/lint' },
+ { text: 'Format Plugins', link: '/plugins/format' },
+ { text: 'Task Runner Plugins', link: '/plugins/task-runner' },
],
},
// {
@@ -117,32 +117,32 @@ export default extendConfig(
// ],
// },
{
- text: "Resources",
+ text: 'Resources',
items: [
- { text: "Team", link: "https://voidzero.dev/team" },
- { text: "Blog", link: "https://voidzero.dev/blog" },
- { text: "Releases", link: "https://github.com/voidzero-dev/vite-plus/releases" },
+ { text: 'Team', link: 'https://voidzero.dev/team' },
+ { text: 'Blog', link: 'https://voidzero.dev/blog' },
+ { text: 'Releases', link: 'https://github.com/voidzero-dev/vite-plus/releases' },
{
items: [
{
- text: "Awesome Vite+",
- link: "https://github.com/voidzero-dev/awesome-vite-plus",
+ text: 'Awesome Vite+',
+ link: 'https://github.com/voidzero-dev/awesome-vite-plus',
},
{
- text: "ViteConf",
- link: "https://viteconf.org",
+ text: 'ViteConf',
+ link: 'https://viteconf.org',
},
{
- text: "DEV Community",
- link: "https://dev.to/t/vite",
+ text: 'DEV Community',
+ link: 'https://dev.to/t/vite',
},
{
- text: "Changelog",
- link: "https://github.com/voidzero-dev/vite-plus/releases",
+ text: 'Changelog',
+ link: 'https://github.com/voidzero-dev/vite-plus/releases',
},
{
- text: "Contributing",
- link: "https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md",
+ text: 'Contributing',
+ link: 'https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md',
},
],
},
@@ -151,388 +151,388 @@ export default extendConfig(
],
sidebar: {
- "/vite/guide/": {
- base: "/vite/guide/",
+ '/vite/guide/': {
+ base: '/vite/guide/',
items: [
{
- text: "Introduction",
+ text: 'Introduction',
items: [
{
- text: "Getting Started",
- link: "index",
+ text: 'Getting Started',
+ link: 'index',
},
{
- text: "Monorepo",
- link: "monorepo",
+ text: 'Monorepo',
+ link: 'monorepo',
},
{
- text: "Philosophy",
- link: "philosophy",
+ text: 'Philosophy',
+ link: 'philosophy',
},
{
- text: "Why Vite+",
- link: "why",
+ text: 'Why Vite+',
+ link: 'why',
},
{
- text: "Migration",
- link: "migration",
+ text: 'Migration',
+ link: 'migration',
},
],
},
{
- text: "Vite Core",
+ text: 'Vite Core',
items: [
{
- text: "Features",
- link: "features",
+ text: 'Features',
+ link: 'features',
},
{
- text: "CLI",
- link: "cli",
+ text: 'CLI',
+ link: 'cli',
},
{
- text: "Using Plugins",
- link: "using-plugins",
+ text: 'Using Plugins',
+ link: 'using-plugins',
},
{
- text: "Dependency Pre-Bundling",
- link: "dependency-pre-bundling",
+ text: 'Dependency Pre-Bundling',
+ link: 'dependency-pre-bundling',
},
{
- text: "Static Asset Handling",
- link: "static-asset-handling",
+ text: 'Static Asset Handling',
+ link: 'static-asset-handling',
},
{
- text: "Building for Production",
- link: "building-for-production",
+ text: 'Building for Production',
+ link: 'building-for-production',
},
{
- text: "Deploying a Static Site",
- link: "deploying-a-static-site",
+ text: 'Deploying a Static Site',
+ link: 'deploying-a-static-site',
},
{
- text: "Env Variables and Modes",
- link: "env-variables-and-modes",
+ text: 'Env Variables and Modes',
+ link: 'env-variables-and-modes',
},
{
- text: "Server-Side Rendering",
- link: "server-side-rendering",
+ text: 'Server-Side Rendering',
+ link: 'server-side-rendering',
},
{
- text: "Backend Integration",
- link: "backend-integration",
+ text: 'Backend Integration',
+ link: 'backend-integration',
},
{
- text: "Troubleshooting",
- link: "troubleshooting",
+ text: 'Troubleshooting',
+ link: 'troubleshooting',
},
{
- text: "Performance",
- link: "performance",
+ text: 'Performance',
+ link: 'performance',
},
{
- text: "Migration from vite@7+",
- link: "migration",
+ text: 'Migration from vite@7+',
+ link: 'migration',
},
],
},
{
- text: "Test",
+ text: 'Test',
items: [
{
- text: "Getting Started",
- link: "/guide/test/getting-started",
+ text: 'Getting Started',
+ link: '/guide/test/getting-started',
},
{
- text: "Features",
- link: "/guide/test/features",
+ text: 'Features',
+ link: '/guide/test/features',
},
{
- text: "CLI",
- link: "/guide/test/cli",
+ text: 'CLI',
+ link: '/guide/test/cli',
},
{
- text: "Test Filtering",
- link: "/guide/test/test-filtering",
+ text: 'Test Filtering',
+ link: '/guide/test/test-filtering',
},
{
- text: "...",
- link: "/guide/test/dependency-pre-bundling",
+ text: '...',
+ link: '/guide/test/dependency-pre-bundling',
},
{
- text: "Migration from vitest",
- link: "/guide/test/migration-from-vitest",
+ text: 'Migration from vitest',
+ link: '/guide/test/migration-from-vitest',
},
],
},
{
- text: "Lint",
+ text: 'Lint',
items: [
{
- text: "Getting Started",
- link: "/guide/lint/getting-started",
+ text: 'Getting Started',
+ link: '/guide/lint/getting-started',
},
{
- text: "Features",
- link: "/guide/lint/features",
+ text: 'Features',
+ link: '/guide/lint/features',
},
{
- text: "CLI",
- link: "/guide/lint/cli",
+ text: 'CLI',
+ link: '/guide/lint/cli',
},
{
- text: "...",
- link: "/guide/test/dependency-pre-bundling",
+ text: '...',
+ link: '/guide/test/dependency-pre-bundling',
},
{
- text: "Migration from oxlint",
- link: "/guide/test/migration-from-oxlint",
+ text: 'Migration from oxlint',
+ link: '/guide/test/migration-from-oxlint',
},
{
- text: "Migration from ESLint",
- link: "/guide/test/migration-from-eslint",
+ text: 'Migration from ESLint',
+ link: '/guide/test/migration-from-eslint',
},
],
},
{
- text: "Format",
+ text: 'Format',
items: [
{
- text: "Getting Started",
- link: "/guide/format/getting-started",
+ text: 'Getting Started',
+ link: '/guide/format/getting-started',
},
{
- text: "Features",
- link: "/guide/format/features",
+ text: 'Features',
+ link: '/guide/format/features',
},
{
- text: "CLI",
- link: "/guide/format/cli",
+ text: 'CLI',
+ link: '/guide/format/cli',
},
{
- text: "Migration from oxfmt",
- link: "/guide/format/migration-from-oxfmt",
+ text: 'Migration from oxfmt',
+ link: '/guide/format/migration-from-oxfmt',
},
{
- text: "Migration from Prettier",
- link: "/guide/format/migration-from-prettier",
+ text: 'Migration from Prettier',
+ link: '/guide/format/migration-from-prettier',
},
],
},
{
- text: "Task Runner",
+ text: 'Task Runner',
items: [
{
- text: "Getting Started",
- link: "task/getting-started",
+ text: 'Getting Started',
+ link: 'task/getting-started',
},
{
- text: "Features",
- link: "/guide/task/features",
+ text: 'Features',
+ link: '/guide/task/features',
},
{
- text: "CLI",
- link: "/guide/task/cli",
+ text: 'CLI',
+ link: '/guide/task/cli',
},
{
- text: "Migration from Turborepo",
- link: "/guide/format/migration-from-turborepo",
+ text: 'Migration from Turborepo',
+ link: '/guide/format/migration-from-turborepo',
},
{
- text: "Migration from Nx",
- link: "/guide/format/migration-from-nx",
+ text: 'Migration from Nx',
+ link: '/guide/format/migration-from-nx',
},
{
- text: "Migration from Lerna",
- link: "/guide/format/migration-from-lerna",
+ text: 'Migration from Lerna',
+ link: '/guide/format/migration-from-lerna',
},
{
- text: "Migration from pnpm",
- link: "/guide/format/migration-from-pnpm",
+ text: 'Migration from pnpm',
+ link: '/guide/format/migration-from-pnpm',
},
{
- text: "Migration from yarn",
- link: "/guide/format/migration-from-yarn",
+ text: 'Migration from yarn',
+ link: '/guide/format/migration-from-yarn',
},
{
- text: "Migration from npm",
- link: "/guide/format/migration-from-npm",
+ text: 'Migration from npm',
+ link: '/guide/format/migration-from-npm',
},
{
- text: "Migration from bun",
- link: "/guide/format/migration-from-bun",
+ text: 'Migration from bun',
+ link: '/guide/format/migration-from-bun',
},
],
},
{
- text: "Library Bundler",
+ text: 'Library Bundler',
items: [
{
- text: "Getting Started",
- link: "/guide/library/getting-started",
+ text: 'Getting Started',
+ link: '/guide/library/getting-started',
},
{
- text: "Features",
- link: "/guide/library/features",
+ text: 'Features',
+ link: '/guide/library/features',
},
{
- text: "CLI",
- link: "/guide/library/cli",
+ text: 'CLI',
+ link: '/guide/library/cli',
},
{
- text: "Migration from tsdown",
- link: "/guide/library/migration-from-tsdown",
+ text: 'Migration from tsdown',
+ link: '/guide/library/migration-from-tsdown',
},
{
- text: "Migration from tsup",
- link: "/guide/library/migration-from-tsup",
+ text: 'Migration from tsup',
+ link: '/guide/library/migration-from-tsup',
},
{
- text: "Migration from esbuild",
- link: "/guide/library/migration-from-esbuild",
+ text: 'Migration from esbuild',
+ link: '/guide/library/migration-from-esbuild',
},
],
},
{
- text: "DevTools",
+ text: 'DevTools',
items: [
{
- text: "Getting Started",
- link: "/guide/devtools/getting-started",
+ text: 'Getting Started',
+ link: '/guide/devtools/getting-started',
},
{
- text: "Features",
- link: "/guide/library/features",
+ text: 'Features',
+ link: '/guide/library/features',
},
{
- text: "CLI",
- link: "/guide/devtools/cli",
+ text: 'CLI',
+ link: '/guide/devtools/cli',
},
],
},
{
- text: "Package Manager",
+ text: 'Package Manager',
items: [
{
- text: "Getting Started",
- link: "/guide/package-manager/getting-started",
+ text: 'Getting Started',
+ link: '/guide/package-manager/getting-started',
},
{
- text: "Features",
- link: "/guide/package-manager/features",
+ text: 'Features',
+ link: '/guide/package-manager/features',
},
{
- text: "CLI",
- link: "/guide/package-manager/cli",
+ text: 'CLI',
+ link: '/guide/package-manager/cli',
},
],
},
],
},
- "/lib/guide/": {
- base: "/lib/guide/",
+ '/lib/guide/': {
+ base: '/lib/guide/',
items: [
{
- text: "Library Bundler",
+ text: 'Library Bundler',
items: [
{
- text: "Introduction",
- link: "introduction",
+ text: 'Introduction',
+ link: 'introduction',
},
{
- text: "Getting Started",
- link: "getting-started",
+ text: 'Getting Started',
+ link: 'getting-started',
},
{
- text: "Migration from tsdown",
- link: "/guide/library/migration-from-tsdown",
+ text: 'Migration from tsdown',
+ link: '/guide/library/migration-from-tsdown',
},
{
- text: "Migration from tsup",
- link: "/guide/library/migration-from-tsup",
+ text: 'Migration from tsup',
+ link: '/guide/library/migration-from-tsup',
},
{
- text: "Migration from esbuild",
- link: "/guide/library/migration-from-esbuild",
+ text: 'Migration from esbuild',
+ link: '/guide/library/migration-from-esbuild',
},
],
},
{
- text: "Options",
+ text: 'Options',
items: [
{
- text: "Entry",
- link: "entry",
+ text: 'Entry',
+ link: 'entry',
},
{
- text: "Config File",
- link: "config-file",
+ text: 'Config File',
+ link: 'config-file',
},
{
- text: "Declaration Files (dts)",
- link: "dts",
+ text: 'Declaration Files (dts)',
+ link: 'dts',
},
],
},
{
- text: "Recipes",
+ text: 'Recipes',
items: [
{
- text: "Vue Support",
- link: "vue-support",
+ text: 'Vue Support',
+ link: 'vue-support',
},
{
- text: "React Support",
- link: "react-support",
+ text: 'React Support',
+ link: 'react-support',
},
{
- text: "Svelte Support",
- link: "svelte-support",
+ text: 'Svelte Support',
+ link: 'svelte-support',
},
],
},
{
- text: "Advanced",
+ text: 'Advanced',
items: [
{
- text: "Plugins",
- link: "plugins",
+ text: 'Plugins',
+ link: 'plugins',
},
{
- text: "Hooks",
- link: "hooks",
+ text: 'Hooks',
+ link: 'hooks',
},
{
- text: "Rolldown Options",
- link: "rolldown-options",
+ text: 'Rolldown Options',
+ link: 'rolldown-options',
},
{
- text: "Programmatic Usage",
- link: "programmatic-usage",
+ text: 'Programmatic Usage',
+ link: 'programmatic-usage',
},
],
},
{
- text: "API Reference",
+ text: 'API Reference',
items: [
{
- text: "Command Line Interface",
- link: "command-line-interface",
+ text: 'Command Line Interface',
+ link: 'command-line-interface',
},
{
- text: "Config Options",
- link: "config-options",
+ text: 'Config Options',
+ link: 'config-options',
},
{
- text: "Type Definitions",
+ text: 'Type Definitions',
items: [
{
- text: "AttwOptions",
- link: "attributes-options",
+ text: 'AttwOptions',
+ link: 'attributes-options',
},
{
- text: "BuildContext",
- link: "build-context",
+ text: 'BuildContext',
+ link: 'build-context',
},
],
},
@@ -540,175 +540,175 @@ export default extendConfig(
},
],
},
- "/config/": [
+ '/config/': [
{
- text: "Vite Core",
+ text: 'Vite Core',
items: [
{
- text: "Configuring Vite+",
- link: "/config/",
+ text: 'Configuring Vite+',
+ link: '/config/',
},
{
- text: "Shared Options",
- link: "/config/shared-options",
+ text: 'Shared Options',
+ link: '/config/shared-options',
},
{
- text: "Server Options",
- link: "/config/server-options",
+ text: 'Server Options',
+ link: '/config/server-options',
},
{
- text: "Build Options",
- link: "/config/build-options",
+ text: 'Build Options',
+ link: '/config/build-options',
},
{
- text: "Preview Options",
- link: "/config/preview-options",
+ text: 'Preview Options',
+ link: '/config/preview-options',
},
{
- text: "Dep Optimization Options",
- link: "/config/dep-optimization-options",
+ text: 'Dep Optimization Options',
+ link: '/config/dep-optimization-options',
},
{
- text: "SSR Options",
- link: "/config/ssr-options",
+ text: 'SSR Options',
+ link: '/config/ssr-options',
},
{
- text: "Worker Options",
- link: "/config/worker-options",
+ text: 'Worker Options',
+ link: '/config/worker-options',
},
],
},
{
- text: "Test",
+ text: 'Test',
items: [
{
- text: "Configuring Test",
- link: "/config/test",
+ text: 'Configuring Test',
+ link: '/config/test',
},
{
- text: "Test Options",
- link: "/config/test-options",
+ text: 'Test Options',
+ link: '/config/test-options',
},
],
},
{
- text: "Lint",
+ text: 'Lint',
items: [
{
- text: "Configuring Lint",
- link: "/config/lint",
+ text: 'Configuring Lint',
+ link: '/config/lint',
},
{
- text: "Lint Options",
- link: "/config/lint-options",
+ text: 'Lint Options',
+ link: '/config/lint-options',
},
],
},
],
- "/apis/": [
+ '/apis/': [
{
- text: "Vite Core API",
+ text: 'Vite Core API',
items: [
{
- text: "Plugin API",
- link: "/apis/vite/plugin",
+ text: 'Plugin API',
+ link: '/apis/vite/plugin',
},
{
- text: "HMR API",
- link: "/apis/vite/hmr",
+ text: 'HMR API',
+ link: '/apis/vite/hmr',
},
{
- text: "JavaScript API",
- link: "/apis/vite/javascript",
+ text: 'JavaScript API',
+ link: '/apis/vite/javascript',
},
],
},
{
- text: "Environment API",
+ text: 'Environment API',
items: [
{
- text: "Introduction",
- link: "/apis/environment/introduction",
+ text: 'Introduction',
+ link: '/apis/environment/introduction',
},
{
- text: "Environment Instances",
- link: "/apis/environment/instances",
+ text: 'Environment Instances',
+ link: '/apis/environment/instances',
},
{
- text: "Plugins",
- link: "/apis/environment/plugins",
+ text: 'Plugins',
+ link: '/apis/environment/plugins',
},
{
- text: "Frameworks",
- link: "/apis/environment/frameworks",
+ text: 'Frameworks',
+ link: '/apis/environment/frameworks',
},
{
- text: "Runtimes",
- link: "/apis/environment/runtimes",
+ text: 'Runtimes',
+ link: '/apis/environment/runtimes',
},
],
},
{
- text: "Test API",
+ text: 'Test API',
items: [
{
- text: "Introduction",
- link: "/apis/test/introduction",
+ text: 'Introduction',
+ link: '/apis/test/introduction',
},
{
- text: "Plugin API",
- link: "/apis/test/plugin",
+ text: 'Plugin API',
+ link: '/apis/test/plugin',
},
],
},
{
- text: "Lint API",
+ text: 'Lint API',
items: [
{
- text: "Introduction",
- link: "/apis/lint/introduction",
+ text: 'Introduction',
+ link: '/apis/lint/introduction',
},
{
- text: "Plugin API",
- link: "/apis/lint/plugin",
+ text: 'Plugin API',
+ link: '/apis/lint/plugin',
},
],
},
{
- text: "Format API",
+ text: 'Format API',
items: [
{
- text: "Introduction",
- link: "/apis/format/introduction",
+ text: 'Introduction',
+ link: '/apis/format/introduction',
},
{
- text: "Plugin API",
- link: "/apis/format/plugin",
+ text: 'Plugin API',
+ link: '/apis/format/plugin',
},
],
},
{
- text: "Task Runner API",
+ text: 'Task Runner API',
items: [
{
- text: "Introduction",
- link: "/apis/task-runner/introduction",
+ text: 'Introduction',
+ link: '/apis/task-runner/introduction',
},
{
- text: "Plugin API",
- link: "/apis/task-runner/plugin",
+ text: 'Plugin API',
+ link: '/apis/task-runner/plugin',
},
],
},
],
- "/changes/": [],
+ '/changes/': [],
},
socialLinks: [
- { icon: "github", link: "https://github.com/voidzero-dev/vite-plus" },
- { icon: "x", link: "https://x.com/voidzerodev" },
- { icon: "discord", link: "https://discord.gg/cC6TEVFKSx" },
- { icon: "bluesky", link: "https://bsky.app/profile/voidzero.dev" },
+ { icon: 'github', link: 'https://github.com/voidzero-dev/vite-plus' },
+ { icon: 'x', link: 'https://x.com/voidzerodev' },
+ { icon: 'discord', link: 'https://discord.gg/cC6TEVFKSx' },
+ { icon: 'bluesky', link: 'https://bsky.app/profile/voidzero.dev' },
],
outline: {
@@ -716,41 +716,41 @@ export default extendConfig(
},
search: {
- provider: "local",
+ provider: 'local',
},
},
transformHead({ page, pageData }) {
// Remove .md suffix and replace index with empty string (to cover index.md)
- const url = "https://viteplus.dev/" + page.replace(/\.md$/, "").replace(/index$/, "");
+ const url = 'https://viteplus.dev/' + page.replace(/\.md$/, '').replace(/index$/, '');
const canonicalUrlEntry: HeadConfig = [
- "link",
+ 'link',
{
- rel: "canonical",
+ rel: 'canonical',
href: url,
},
];
const ogInfo: HeadConfig[] = [
- ["meta", { property: "og:title", content: pageData.frontmatter.title ?? "Vite+" }],
+ ['meta', { property: 'og:title', content: pageData.frontmatter.title ?? 'Vite+' }],
[
- "meta",
+ 'meta',
{
- property: "og:image",
- content: `https://viteplus.dev/${pageData.frontmatter.cover ?? "og.jpg"}`,
+ property: 'og:image',
+ content: `https://viteplus.dev/${pageData.frontmatter.cover ?? 'og.jpg'}`,
},
],
- ["meta", { property: "og:url", content: url }],
+ ['meta', { property: 'og:url', content: url }],
[
- "meta",
+ 'meta',
{
- property: "og:description",
- content: pageData.frontmatter.description ?? "The Unified Toolchain for the Web",
+ property: 'og:description',
+ content: pageData.frontmatter.description ?? 'The Unified Toolchain for the Web',
},
],
];
return [...ogInfo, canonicalUrlEntry];
},
- }),
+ })
);
diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue
index 60ef71ede7..c808d89632 100644
--- a/docs/.vitepress/theme/Layout.vue
+++ b/docs/.vitepress/theme/Layout.vue
@@ -27,7 +27,7 @@ watch(
() => frontmatter.value?.layout,
() => {
ensureHomeLight();
- },
+ }
);
diff --git a/docs/.vitepress/theme/components/Footer.vue b/docs/.vitepress/theme/components/Footer.vue
index 212521d9ea..4bb367932c 100644
--- a/docs/.vitepress/theme/components/Footer.vue
+++ b/docs/.vitepress/theme/components/Footer.vue
@@ -138,6 +138,6 @@
diff --git a/docs/.vitepress/theme/components/Header.vue b/docs/.vitepress/theme/components/Header.vue
index 9f330ba8c7..6f4b778b46 100644
--- a/docs/.vitepress/theme/components/Header.vue
+++ b/docs/.vitepress/theme/components/Header.vue
@@ -1,8 +1,8 @@
diff --git a/docs/.vitepress/theme/components/home/Terminal.vue b/docs/.vitepress/theme/components/home/Terminal.vue
index d24312a1b0..88be6d95b4 100644
--- a/docs/.vitepress/theme/components/home/Terminal.vue
+++ b/docs/.vitepress/theme/components/home/Terminal.vue
@@ -24,7 +24,7 @@ const tabSequence = terminalTranscripts.map((transcript) => transcript.id);
const activeTranscript = computed(
() =>
terminalTranscripts.find((transcript) => transcript.id === activeTab.value) ??
- terminalTranscripts[0],
+ terminalTranscripts[0]
);
const goToNextTab = () => {
@@ -81,7 +81,7 @@ onMounted(() => {
{
threshold: 0.2, // Trigger when 20% of the element is visible
rootMargin: '0px',
- },
+ }
);
observer.observe(sectionRef.value);
diff --git a/docs/.vitepress/theme/components/home/TerminalTranscript.vue b/docs/.vitepress/theme/components/home/TerminalTranscript.vue
index 379171fd92..20d5b47b3b 100644
--- a/docs/.vitepress/theme/components/home/TerminalTranscript.vue
+++ b/docs/.vitepress/theme/components/home/TerminalTranscript.vue
@@ -48,12 +48,12 @@ const restartAnimation = () => {
if (lineIndex === props.transcript.lines.length - 1) {
const completionTimer = window.setTimeout(
() => emit('complete'),
- props.transcript.completionDelay ?? 900,
+ props.transcript.completionDelay ?? 900
);
timers.push(completionTimer);
}
},
- (props.transcript.lineDelay ?? 220) * (lineIndex + 1),
+ (props.transcript.lineDelay ?? 220) * (lineIndex + 1)
);
timers.push(revealTimer);
});
@@ -86,7 +86,7 @@ const toneClass = (tone: TerminalTone) => {
watch(
() => props.transcript.id,
() => restartAnimation(),
- { immediate: true },
+ { immediate: true }
);
onBeforeUnmount(() => clearTimers());
From 6aa516b9f0f201ecb4a5cbf57cc3834463844b41 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 10 Mar 2026 04:21:39 +0000
Subject: [PATCH 3/3] revert: restore Layout.vue, Terminal.vue,
TerminalTranscript.vue to original state
Co-authored-by: mdong1909 <220303712+mdong1909@users.noreply.github.com>
---
docs/.vitepress/theme/Layout.vue | 2 +-
docs/.vitepress/theme/components/home/Terminal.vue | 4 ++--
.../.vitepress/theme/components/home/TerminalTranscript.vue | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue
index c808d89632..60ef71ede7 100644
--- a/docs/.vitepress/theme/Layout.vue
+++ b/docs/.vitepress/theme/Layout.vue
@@ -27,7 +27,7 @@ watch(
() => frontmatter.value?.layout,
() => {
ensureHomeLight();
- }
+ },
);
diff --git a/docs/.vitepress/theme/components/home/Terminal.vue b/docs/.vitepress/theme/components/home/Terminal.vue
index 88be6d95b4..d24312a1b0 100644
--- a/docs/.vitepress/theme/components/home/Terminal.vue
+++ b/docs/.vitepress/theme/components/home/Terminal.vue
@@ -24,7 +24,7 @@ const tabSequence = terminalTranscripts.map((transcript) => transcript.id);
const activeTranscript = computed(
() =>
terminalTranscripts.find((transcript) => transcript.id === activeTab.value) ??
- terminalTranscripts[0]
+ terminalTranscripts[0],
);
const goToNextTab = () => {
@@ -81,7 +81,7 @@ onMounted(() => {
{
threshold: 0.2, // Trigger when 20% of the element is visible
rootMargin: '0px',
- }
+ },
);
observer.observe(sectionRef.value);
diff --git a/docs/.vitepress/theme/components/home/TerminalTranscript.vue b/docs/.vitepress/theme/components/home/TerminalTranscript.vue
index 20d5b47b3b..379171fd92 100644
--- a/docs/.vitepress/theme/components/home/TerminalTranscript.vue
+++ b/docs/.vitepress/theme/components/home/TerminalTranscript.vue
@@ -48,12 +48,12 @@ const restartAnimation = () => {
if (lineIndex === props.transcript.lines.length - 1) {
const completionTimer = window.setTimeout(
() => emit('complete'),
- props.transcript.completionDelay ?? 900
+ props.transcript.completionDelay ?? 900,
);
timers.push(completionTimer);
}
},
- (props.transcript.lineDelay ?? 220) * (lineIndex + 1)
+ (props.transcript.lineDelay ?? 220) * (lineIndex + 1),
);
timers.push(revealTimer);
});
@@ -86,7 +86,7 @@ const toneClass = (tone: TerminalTone) => {
watch(
() => props.transcript.id,
() => restartAnimation(),
- { immediate: true }
+ { immediate: true },
);
onBeforeUnmount(() => clearTimers());