0.0.1-alpha.17 • Published 7 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
8 months ago
0.0.1-alpha.11
9 months ago
0.0.1-alpha.14
8 months ago
0.0.1-alpha.13
8 months ago
0.0.1-alpha.16
7 months ago
0.0.1-alpha.15
7 months ago
0.0.1-alpha.17
7 months ago
0.0.1-alpha.10
11 months ago
0.0.1-alpha.9
1 year ago
0.0.1-alpha.6
1 year ago
0.0.1-alpha.7
1 year ago
0.0.1-alpha.8
1 year ago
0.0.1-alpha.4
1 year ago
0.0.1-alpha.5
1 year 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