0.0.1-alpha.17 • Published 5 months ago
@142vip/vuepress v0.0.1-alpha.17
@142vip/vuepress
使用
# 安装
pnpm i @142vip/vuepress -D
配置
在根目录新建vuepress.config.ts
文件,配置参考:
import {
defineVipVuepressConfig,
getVipHopeTheme,
handleImportCodePath,
} from '@142vip/vuepress'
export default defineVipVuepressConfig({
// 基础配置
// ...
// 支持中文
locales: {
'/': {
lang: 'zh-CN',
},
},
// markdown配置
markdown: {
// 导入代码
importCode: {
handleImportPath: handleImportCodePath([
['@code', 'code/'],
['~', ''],
]),
},
headers: {
level: [2, 3, 4],
},
},
// 主题配置
theme: getVipHopeTheme({
// 一些主题配置
// ...
// changelog和贡献者
// changelog: true,
// contributors: true,
}),
})
命令
# 本地开发
npx vuepress dev
# 编辑
npx vuepress build
证书
Copyright (c) 2019-present, 142vip 储凡
0.0.1-alpha.12
6 months ago
0.0.1-alpha.11
6 months ago
0.0.1-alpha.14
5 months ago
0.0.1-alpha.13
5 months ago
0.0.1-alpha.16
5 months ago
0.0.1-alpha.15
5 months ago
0.0.1-alpha.17
5 months ago
0.0.1-alpha.10
8 months ago
0.0.1-alpha.9
10 months ago
0.0.1-alpha.6
11 months ago
0.0.1-alpha.7
11 months ago
0.0.1-alpha.8
11 months ago
0.0.1-alpha.4
1 year ago
0.0.1-alpha.5
12 months ago
0.0.1-alpha.2
1 year ago
0.0.1-alpha.3
1 year ago
0.0.1-alpha.1
1 year ago
0.0.1-alpha.0
1 year ago