vitepress
БесплатноБез исполняемых скриптовНе проверенBuilds documentation sites with VitePress, the Vite-powered static site generator. Use when a user asks to create docs, configure VitePress themes, add custom…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
VitePress — Vite-Powered Documentation Site
Overview
VitePress is a static site generator built on Vite and Vue: it turns a folder of Markdown files into a documentation site with a default theme (navigation, sidebar, outline, dark mode), built-in full-text search, i18n and Vue components inside Markdown. The stable release is 1.6.4 and is what npm add -D vitepress installs. The documentation at vitepress.dev already describes 2.0, which is still an alpha (vitepress@next, Vite 8, Node.js 22+); everything below works on 1.6.
Instructions
Setup
npm add -D vitepress
npx vitepress init # interactive wizard: docs folder, title, description, theme, TypeScript, npm scripts
# Typical structure with ./docs as the site root:
# docs/
# .vitepress/
# config.mts # Site configuration (.ts, .js and .mjs work too)
# theme/ # Optional theme customization
# index.md # Homepage
# guide/
# getting-started.md
# public/ # Static files copied as-is (logo.svg, favicon.ico)
npx vitepress dev docs # dev server on http://localhost:5173
npx vitepress build docs # static site in docs/.vitepress/dist
npx vitepress preview docs # serve the build on http://localhost:4173
The wizard cannot be answered from flags; in a non-interactive session create docs/.vitepress/config.mts and docs/index.md by hand and add the scripts with npm pkg set scripts.docs:dev="vitepress dev docs" scripts.docs:build="vitepress build docs" scripts.docs:preview="vitepress preview docs". VitePress is ESM-only: name the config config.mts/config.mjs, or set "type": "module" in package.json. Add docs/.vitepress/dist and docs/.vitepress/cache to .gitignore.
Configuration
// docs/.vitepress/config.mts
import { defineConfig } from "vitepress";
export default defineConfig({
title: "Ledgerline SDK",
description: "Documentation for the Ledgerline payments SDK",
cleanUrls: true, // /guide/installation instead of /guide/installation.html
lastUpdated: true, // from Git history; CI must fetch it (fetch-depth: 0)
sitemap: { hostname: "https://docs.ledgerline.dev" },
themeConfig: {
logo: "/logo.svg", // file in docs/public/
nav: [
{ text: "Guide", link: "/guide/getting-started" },
{ text: "API", link: "/api/reference" },
{ text: "Changelog", link: "/changelog" },
],
sidebar: {
"/guide/": [
{
text: "Introduction",
collapsed: false, // collapsible group, open by default
items: [
{ text: "Getting Started", link: "/guide/getting-started" },
{ text: "Installation", link: "/guide/installation" },
{ text: "Authentication", link: "/guide/authentication" },
],
},
],
"/api/": [{ text: "API", items: [{ text: "Reference", link: "/api/reference" }] }],
},
socialLinks: [
{ icon: "github", link: "https://github.com/ledgerline/ledgerline-sdk" },
],
search: { provider: "local" }, // Built-in full-text search
editLink: {
pattern: "https://github.com/ledgerline/ledgerline-sdk/edit/main/docs/:path",
text: "Edit this page on GitHub",
},
footer: { // shown only on pages without a sidebar
message: "Released under the MIT License.",
copyright: "Copyright © 2026 Ledgerline",
},
},
});
Links in nav and sidebar are not validated — a typo there builds fine and ends in a 404. Links inside Markdown pages are: a broken one stops the build with [vitepress] 1 dead link(s) found.
Markdown Features
# Page Title
## Code Groups
::: code-group
```ts [TypeScript]
const client = new Ledgerline({ apiKey: process.env.LEDGERLINE_API_KEY });
const charges = await client.charges.list({ limit: 20 });
```
```python [Python]
client = Ledgerline(api_key=os.environ["LEDGERLINE_API_KEY"])
charges = client.charges.list(limit=20)
```
:::
## Custom Containers
::: tip
Use test-mode keys while developing.
:::
::: danger Irreversible
Refunds cannot be undone. The text after the type (tip, info, warning, danger) replaces the default title.
:::
::: details Click to expand
Hidden content that users can reveal.
:::
## Frontmatter
```yaml
---
title: Custom Title
description: SEO description for this page
outline: [2, 3] # h2 and h3 in the "On this page" outline
next:
text: Installation
link: /guide/installation
---
```
Frontmatter is the YAML between --- lines at the very top of the .md file (above it is fenced only so the sample page can display it). The homepage uses the home layout, configured entirely in frontmatter:
---
layout: home
hero:
name: Ledgerline SDK
text: Payments in ten lines of code
actions:
- { theme: brand, text: Get Started, link: /guide/getting-started }
features:
- { title: Typed er
Установить vitepress в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vitepress?
Builds documentation sites with VitePress, the Vite-powered static site generator. Use when a user asks to create docs, configure VitePress themes, add custom pages, deploy to GitHub Pages, or extend with Vue components.
Как установить скилл vitepress?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vitepress запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub