yuque-hexo 同步文档

https://github.com/x-cold/yuque-hexo

安装 hexo 和 yuque-hexo

1
2
3
4
5
6
7
8
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm i -g yuque-hexo
cnpm i -g hexo-cli

or

npm i -g yuque-hexo --registry=https://registry.npmmirror.com
npm i -g hexo-cli --registry=https://registry.npmmirror.com

配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"yuqueConfig": {
"postPath": "source/_posts/yuque",
"cachePath": "yuque.json",
"mdNameFormat": "title",
"adapter": "hexo",
"concurrency": 5,
"baseUrl": "https://www.yuque.com/api/v2",
"login": "josway",
"repo": "ou8sgv",
"onlyPublished": false,
"onlyPublic": false,
"lastGeneratePath": "lastGeneratePath.log",
"imgCdn": {
"enabled": false,
"imageBed": "qiniu",
"host": "",
"bucket": "",
"region": "",
"prefixKey": ""
}
}

同步命令 Windows

1
set YUQUE_TOKEN=G9AVFIsLTY6LIvFOwkMbUTOvPHgkmG4oHWSz7T7c && yuque-hexo sync

同步文章并部署远端并推送仓库

1
set YUQUE_TOKEN=G9AVFIsLTY6LIvFOwkMbUTOvPHgkmG4oHWSz7T7c && yuque-hexo sync && hexo clean && hexo deploy && git add . && git commit -m "edit" && git push origin master

同步部署本地命令 Windows

1
set YUQUE_TOKEN=G9AVFIsLTY6LIvFOwkMbUTOvPHgkmG4oHWSz7T7c && yuque-hexo sync && hexo clean && hexo server

同步部署远端命令 Windows

1
set YUQUE_TOKEN=G9AVFIsLTY6LIvFOwkMbUTOvPHgkmG4oHWSz7T7c && yuque-hexo sync && hexo clean && hexo deploy

同步 github 命令 Windows

1
git add . && git commit -m "edit" && git push origin master

yuque-hexo 同步文档
https://blog.josway.cc/2022/04/25/yuque/yuque-hexo 同步文档/
作者
JOSWAY
发布于
2022年4月25日
许可协议