Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 760 Bytes

DOCUMENTATION.md

File metadata and controls

37 lines (32 loc) · 760 Bytes
  1. run a command to init vitepress
pnpm vitepress init
  1. select the Custom Theme when you see the follow questions:
┌  Welcome to VitePress!
│
◇  Where should VitePress initialize the config?
│  ./docs
│
◇  Site title:
│  My Awesome Project
│
◇  Site description:
│  A VitePress Site
│
◆  Theme:
│  ○ Default Theme (Out of the box, good-looking docs)
│  ○ Default Theme + Customization
│  ● Custom Theme
└
  1. create a index.ts under the .vitepress/theme
import type { Theme } from 'vitepress'
import YevTheme from 'vitepress-theme-snow'
import 'vitepress-theme-snow/styles/index.css'
export default {
  ...YevTheme
} satisfies Theme