-
Notifications
You must be signed in to change notification settings - Fork 1
/
elog.config.js
45 lines (45 loc) · 1.15 KB
/
elog.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
write: {
platform: 'yuque-pwd',
// Token 模式(需要语雀超级会员)
yuque: {
token: process.env.YUQUE_TOKEN,
login: process.env.YUQUE_LOGIN,
repo: process.env.YUQUE_REPO,
onlyPublic: true,
onlyPublished: true,
},
// 账号密码模式
"yuque-pwd": {
username: process.env.YUQUE_USERNAME,
password: process.env.YUQUE_PASSWORD,
login: process.env.YUQUE_LOGIN,
repo: process.env.YUQUE_REPO,
linebreak: false
}
},
deploy: {
platform: 'local',
local: {
outputDir: './docs/',
filename: 'title',
format: 'matter-markdown',
catalog: true,
// formatExt: './elog.format.js',
frontMatter: {
enable: true,
include: ['top','descriptionHTML','sticky','publish','tag','description',
'recommend','hiddenCover','author','comment','date','recommend'], // 只输出include包含的属性
exclude: ['cover'], // 不输出exclude包含的属性
}
}
},
image: {
enable: true,
platform: 'local',
local: {
outputDir: './docs/images',
pathFollowDoc: true,
}
}
}