vitepress
できること
このスキルは、MarkdownファイルをすばやいWebページに変換するツールVitePressで、文書サイトを作る方法を説明します。重い設定なしで、わかりやすい文書サイトがほしいチームのためのものです。
使う場面
- ✓Markdownファイルから文書サイトを作りたいとき。
- ✓サイトの設定を用意したり、テーマをカスタマイズしたいとき。
- ✓Markdownのページにvueコンポーネントを追加したいとき。
スキルのリンク
https://github.com/antfu/skills/blob/main/skills/vitepress/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“プロジェクト用のVitePress文書サイトを作ってください。サイドバーと検索ボックスを付けてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、サイトの設定とテーマのフォルダを確認し、VitePressが高速な静的サイトに変換するMarkdownのページと設定を書きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
VitePress is a Static Site Generator (SSG) built on Vite and Vue 3. It takes Markdown content, applies a theme, and generates static HTML that becomes an SPA for fast navigation. Perfect for documentation, blogs, and marketing sites.
Key Characteristics:
- File-based routing with
.mdfiles - Vue components work directly in Markdown
- Fast HMR with instant updates (<100ms)
- Default theme optimized for documentation
- Built-in search (local or Algolia)
Before working with VitePress projects:
- Check
.vitepress/config.tsfor site configuration - Look at
.vitepress/theme/for custom theme extensions - The
public/directory contains static assets served as-is
The skill is based on VitePress 2.0.0-alpha.20, generated at 2026-09-25.
VitePress 2 notes (v1 → v2): install with vitepress@next; requires Node.js 22+. defineConfigWithTheme is deprecated — use defineConfig<ThemeConfig>. Native RTL support (dir option, CSS logical properties) replaces the old PostCSS-plugin approach. Built-in iconify pipeline (icons config, useIcon/VPIcon, collection:name social icons). New assetsBase (CDN) and assetsShards build options; metaChunk removed. Markdown image.lazyLoading renamed to image.lazyLoad.
Core
| Topic | Description | Reference |
|---|---|---|
| Configuration | Config file setup, defineConfig, site metadata | core-config |
| CLI | Command-line interface: dev, build, preview, init | core-cli |
| Routing | File-based routing, source directory, rewrites | core-routing |
| Markdown | Frontmatter, containers, tables, anchors, includes | core-markdown |
Features
Code & Content
| Topic | Description | Reference |
|---|---|---|
| Code Blocks | Syntax highlighting, line highlighting, diffs, focus | features-code-blocks |
| Vue in Markdown | Components, script setup, directives, templating | features-vue |
| Data Loading | Build-time data loaders, createContentLoader | features-data-loading |
| Dynamic Routes | Generate pages from data, paths loader files | features-dynamic-routes |
Theme
| Topic | Description | Reference |
|---|---|---|
| Theme Config | Nav, sidebar, search, social links, footer | theme-config |
| Customization | CSS variables, slots, fonts, global components | theme-customization |
| Custom Theme | Building themes from scratch, theme interface | theme-custom |
Advanced
| Topic | Description | Reference |
|---|---|---|
| Internationalization | Multi-language sites, locale configuration | advanced-i18n |
| SSR Compatibility | Server-side rendering, ClientOnly, dynamic imports | advanced-ssr |
Recipes
| Topic | Description | Reference |
|---|---|---|
| Deployment | GitHub Pages, Netlify, Vercel, Cloudflare, Nginx | recipes-deploy |
よくある質問
VitePressを動かすには何が必要ですか?
指針によると、VitePress 2にはNode.js 22以降が必要です。
検索機能は含まれていますか?
はい。VitePressにはローカル検索が組み込まれており、Algoliaの検索も使えます。
静的ファイルはどこに置きますか?
publicフォルダのファイルは、そのままの形で提供されます。
詳細
作者による元の説明
VitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.
repo: antfu/skills
人気
- GitHubのスター
- 6.0k
- ランキング
- #14446
- ライセンス
- MIT
- 更新日
- 2026/10/30
コメント
- …
このリポジトリの他のスキル
antfu-create-pr
6.0kブランチから、変更内容と理由をわかりやすくまとめたGitHubのプルリクエストを、エージェントが開けるよう支援します。
antfu-issue-triage
6.0k開いているGitHubのissueとプルリクエストを整理し、重複や修正済みのものを見つけて、操作の前に確認を取るようエージェントを支援します。
antfu-query
6.0k計画やアイデアについて一度に一つずつ質問し、二人で明確でテスト済みの理解に至るまでエージェントが問いかけます。
antfu-simplify
6.0kコードの変更を、必要な部分だけを残した最小限の正しい形に減らすようエージェントを支援します。
似ているスキル
technical-documentation
394k明確な技術ドキュメントやエージェントの指示ファイルを書いて確認し、人やAIツールが簡単に従えるようエージェントを支援します。
architecture-decision-records
280kエージェントがプロジェクト構成に関する重要な決定を記録できるようにします。選択の理由を把握しやすくし、変更履歴を明確に残すのに役立ちます。
code-tour
280kエージェントが正確なファイル名と行番号を示しながら、コードを段階的に解説できるようにします。紹介、説明、レビューに役立ちます。