diff --git a/docs/.vitepress/theme/components/CopyPrompt.vue b/docs/.vitepress/theme/components/CopyPrompt.vue new file mode 100644 index 0000000000..9eef3182e4 --- /dev/null +++ b/docs/.vitepress/theme/components/CopyPrompt.vue @@ -0,0 +1,96 @@ + + + + + diff --git a/docs/.vitepress/theme/components/home/Hero.vue b/docs/.vitepress/theme/components/home/Hero.vue index 4f42426625..2408283338 100644 --- a/docs/.vitepress/theme/components/home/Hero.vue +++ b/docs/.vitepress/theme/components/home/Hero.vue @@ -12,7 +12,7 @@

Free and open source under the MIT license.

-
+
Get started Read the Announcement +
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 9d50a93e76..f9644439ea 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -2,6 +2,7 @@ import BaseTheme from '@voidzero-dev/vitepress-theme/src/viteplus'; import type { Theme } from 'vitepress'; +import CopyPrompt from './components/CopyPrompt.vue'; import Layout from './Layout.vue'; import './styles.css'; import 'virtual:group-icons.css'; @@ -9,4 +10,8 @@ import 'virtual:group-icons.css'; export default { extends: BaseTheme, Layout, + enhanceApp({ app }) { + // Globally available so Markdown pages can use without an import. + app.component('CopyPrompt', CopyPrompt); + }, } satisfies Theme; diff --git a/docs/guide/index.md b/docs/guide/index.md index 5f50a38883..45b2c7f1e1 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -4,6 +4,10 @@ Vite+ is the unified toolchain and entry point for web development. It manages y Vite+ ships in two parts: `vp`, the global command-line tool, and `vite-plus`, the local package installed in each project. If you already have a Vite project, use [`vp migrate`](/guide/migrate) to migrate it to Vite+, or paste our [migration prompt](/guide/migrate#migration-prompt) into your coding agent. +Building with an AI assistant? Copy a ready-made setup prompt: + + + ## Install `vp` ### macOS / Linux