Appearance
VitePress
支持语言列表
- https://prismjs.com/#supported-languages
- https://shiki.style/languages
- https://github.com/shikijs/shiki
- https://shiki.style/
准备
bash
mkdir vitepress-starter
cd vitepress-starter
yarn init
yarn add --dev vitepress vue
mkdir docs
echo '# Hello Vitepress' > docs/thymeleaf.md
启动开发环境
添加一些脚本到package.json
json
{
...
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:serve": "vitepress serve docs"
}
}
nav配置
https://vitepress.dev/reference/default-theme-nav
sidebar配置
https://vitepress.dev/reference/default-theme-sidebar
搜索配置
Algolia