Skip to content

VitePress

支持语言列表

准备

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"
	}
}

https://vitepress.dev/reference/default-theme-nav

sidebar配置

https://vitepress.dev/reference/default-theme-sidebar

搜索配置

Algolia

https://vitepress.dev/reference/default-theme-search